You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQLAlchemy 2.0 introduced PEP 681 support to its integration with dataclasses, but unfortunately this is implemented through a generic type Mapped[T] that at the moment is not correctly understood.
Traceback (most recent call last):
File "[...]/example.py", line 25, in <module>
user = from_dict(User, {"id": 1, "name": "john", "fullname": "John Doe"})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[...]/lib/python3.12/site-packages/serde/de.py", line 529, in from_dict
return from_obj(cls, o, named=True, reuse_instances=reuse_instances)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[...]/lib/python3.12/site-packages/serde/de.py", line 497, in from_obj
raise SerdeError(e) from None
serde.compat.SerdeError: Unsupported type: int
The text was updated successfully, but these errors were encountered:
SQLAlchemy 2.0 introduced PEP 681 support to its integration with dataclasses, but unfortunately this is implemented through a generic type
Mapped[T]
that at the moment is not correctly understood.Leads to an error:
The text was updated successfully, but these errors were encountered: