Skip to content

Commit

Permalink
typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vikineema committed Dec 1, 2023
1 parent e9fb34b commit bf24ec7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deafrica_conflux/text.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Text formatting functions"""

from datetime import datetime


Expand Down Expand Up @@ -32,7 +34,7 @@ def serialise_date(date: datetime) -> str:
return date.strftime("%Y%m%d-%H%M%S-%f")


def unserialise_date(date: str) -> datetime.datetime:
def unserialise_date(date: str) -> datetime:
"""
Unserialise a date.
Expand All @@ -47,7 +49,7 @@ def unserialise_date(date: str) -> datetime.datetime:
return datetime.datetime.strptime(date, "%Y%m%d-%H%M%S-%f")


def date_to_day_str(date: datetime.datetime) -> str:
def date_to_day_str(date: datetime) -> str:
"""
Serialise a date discarding hours/mins/seconds.
Expand Down

0 comments on commit bf24ec7

Please sign in to comment.