Skip to content

Commit

Permalink
[Python] Test printing unicode characters (#3563)
Browse files Browse the repository at this point in the history
* Test printing special characters
* Code cleanup and formatting
  • Loading branch information
dbrattli authored Oct 28, 2023
1 parent 4f1b4cd commit aa9eef5
Show file tree
Hide file tree
Showing 4 changed files with 725 additions and 199 deletions.
1 change: 1 addition & 0 deletions src/fable-library-py/fable_library/time_span.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def to_string(ts: timedelta, format: str = "c", _provider: Any | None = None) ->
__all__ = [
"create",
"to_milliseconds",
"to_string",
"from_ticks",
"from_milliseconds",
"from_hours",
Expand Down
4 changes: 2 additions & 2 deletions src/fable-library-py/fable_library/uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ def __str__(self) -> str:

@staticmethod
def create(
uri: str | Uri, kind_or_uri: UriKind | (str | Uri) = UriKind.Absolute
uri: str | Uri, kind_or_uri: UriKind | str | Uri = UriKind.Absolute
) -> Uri:
return Uri(uri, kind_or_uri)

@staticmethod
def try_create(
uri: str | Uri, kind_or_uri: UriKind | (str | Uri), out: FSharpRef[Uri]
uri: str | Uri, kind_or_uri: UriKind | str | Uri, out: FSharpRef[Uri]
) -> bool:
try:
out.contents = Uri.create(uri, kind_or_uri)
Expand Down
Loading

0 comments on commit aa9eef5

Please sign in to comment.