improve typing correctness

This commit is contained in:
ducklet 2023-02-04 01:12:09 +01:00
parent 3320d53eda
commit 418116afac
7 changed files with 45 additions and 32 deletions

View file

@ -91,7 +91,7 @@ def _id(x: T) -> T:
def asplain(
o: object, *, filter_fields: Container[str] = None, serialize: bool = False
o: object, *, filter_fields: Container[str] | None = None, serialize: bool = False
) -> dict[str, Any]:
"""Return the given model instance as `dict` with JSON compatible plain datatypes.