From ca2f095653bf9e77fefc15c3ced7aa7d750798bf Mon Sep 17 00:00:00 2001 From: Trevor Flahardy <75498301+trevorflahardy@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:05:36 -0400 Subject: [PATCH] Black formatting --- tixte/upload.py | 2 +- tixte/utils.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tixte/upload.py b/tixte/upload.py index 7356aa3..5311a6d 100644 --- a/tixte/upload.py +++ b/tixte/upload.py @@ -175,7 +175,7 @@ class Upload(IDable): 'filename', 'uploaded_at', 'size', - 'mimetype' + 'mimetype', ) def __init__(self, *, state: State, data: Dict[Any, Any]) -> None: diff --git a/tixte/utils.py b/tixte/utils.py index 6dfad25..87edd22 100644 --- a/tixte/utils.py +++ b/tixte/utils.py @@ -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.