diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-06-17 23:16:26 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-06-17 23:16:26 +0300 |
commit | 5f2f97e9b96d61c3e2dc51d4448e8961fdae17d1 (patch) | |
tree | 4094a8ac0b09cc48c068935e1f7aa25ccf38b2f9 | |
parent | feb5cc66560bade7f1e3e2e60672833849bea984 (diff) |
cq: DateAndTime: Add type annotations
-rw-r--r-- | nbxmpp/modules/date_and_time.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/modules/date_and_time.py b/nbxmpp/modules/date_and_time.py index b2bffc1..b96df25 100644 --- a/nbxmpp/modules/date_and_time.py +++ b/nbxmpp/modules/date_and_time.py @@ -124,7 +124,7 @@ def create_tzinfo(hours=0, minutes=0, tz_string=None): return timezone(timedelta(hours=hours, minutes=minutes)) -def parse_datetime(timestring, check_utc=False, +def parse_datetime(timestring: str | None, check_utc=False, convert='utc', epoch=False): ''' Parse a XEP-0082 DateTime Profile String |