We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63efa48 commit e616da9Copy full SHA for e616da9
utils/templates/field.py.tpl
@@ -367,7 +367,7 @@ class {{ k.name }}({{ k.parent }}):
367
if isinstance(data, datetime):
368
if self._default_timezone and data.tzinfo is None:
369
data = data.replace(tzinfo=self._default_timezone)
370
- return data
+ return cast(datetime, data)
371
if isinstance(data, date):
372
return data
373
if isinstance(data, int):
0 commit comments