Skip to content

Commit

Permalink
Change type annotation to celery/utils/iso8601.py (#8752)
Browse files Browse the repository at this point in the history
* add type annotation

* change type annotation
  • Loading branch information
em1le committed Jan 4, 2024
1 parent be61f8f commit 12a59f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celery/utils/iso8601.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
)


def parse_iso8601(datestring: str) -> str:
def parse_iso8601(datestring: str) -> datetime:
"""Parse and convert ISO-8601 string to datetime."""
warn("parse_iso8601", "v5.3", "v6", "datetime.datetime.fromisoformat or dateutil.parser.isoparse")
m = ISO8601_REGEX.match(datestring)
Expand Down

0 comments on commit 12a59f8

Please sign in to comment.