Skip to content

Commit 8eb2785

Browse files
committed
Fix mypy complaint
1 parent 39cf9d7 commit 8eb2785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tortoise/fields/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def to_db_value(
419419
) -> DateFieldQueryValueType | None:
420420
if value is not None and isinstance(value, str) and len(value) > 4:
421421
with contextlib.suppress(ValueError):
422-
value = parse_datetime(value).date()
422+
value = parse_datetime(value).date() # type: ignore[assignment]
423423
self.validate(value)
424424
return value
425425

0 commit comments

Comments
 (0)