improve typing correctness
This commit is contained in:
parent
3320d53eda
commit
418116afac
7 changed files with 45 additions and 32 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue