Skip to content
Snippets Groups Projects
Unverified Commit 4e80c09a authored by karp's avatar karp
Browse files

Fix annotation in UtcDateTime#process_result_value

The argument can only be a string or None, because
dateime.from_isoformat expects only a string.
parent b0b1703f
No related branches found
No related tags found
1 merge request!22Make MyPy happy
......@@ -36,7 +36,7 @@ class UtcDateTime(types.TypeDecorator):
return None
def process_result_value(
self, value: str | datetime, dialect: Dialect
self, value: str | None, dialect: Dialect
) -> Optional[datetime]:
if value is None:
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment