Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorflahardy committed Mar 21, 2024
1 parent 976c897 commit ca2f095
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tixte/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class Upload(IDable):
'filename',
'uploaded_at',
'size',
'mimetype'
'mimetype',
)

def __init__(self, *, state: State, data: Dict[Any, Any]) -> None:
Expand Down
9 changes: 5 additions & 4 deletions tixte/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ def to_json(string: str) -> Dict[Any, Any]:
def to_string(data: Dict[Any, Any]) -> str:
return json.dumps(data)


@overload
def parse_time(time_strp: str) -> datetime.datetime:
...
def parse_time(time_strp: str) -> datetime.datetime: ...


@overload
def parse_time(time_strp: Optional[str]) -> Optional[datetime.datetime]:
...
def parse_time(time_strp: Optional[str]) -> Optional[datetime.datetime]: ...


def parse_time(time_strp: Optional[str]) -> Optional[datetime.datetime]:
"""Parses the given tixte time string into a datetime object.
Expand Down

0 comments on commit ca2f095

Please sign in to comment.