Replies: 1 comment
-
The other style also doesnt work
the issue seems to be the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
the code for this was taken from sqlalchemy 1.4 dataclass support (https://docs.sqlalchemy.org/en/14/orm/mapping_styles.html#declarative-mapping-with-dataclasses-and-attrs) as well as pydantic dataclass support (https://pydantic-docs.helpmanual.io/usage/dataclasses/)
The error I get is
TypeError: cannot pickle 'getset_descriptor' object
.Can someone help - what is the right way to create a single dataclass and use it interoperably in sqlalchemy as well pydantic ?
Beta Was this translation helpful? Give feedback.
All reactions