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 has a new integration with dataclasses (and to some extent attrs). It somewhat works with cattrs as well. However, cattrs doesn't detect the init=False flag on the mapped columns (i.e dataclass fields).
Description
SQLAlchemy 2.0 has a new integration with dataclasses (and to some extent attrs). It somewhat works with cattrs as well. However, cattrs doesn't detect the init=False flag on the mapped columns (i.e dataclass fields).
What I Did
Using the example in sqlalchemy's documentation (https://docs.sqlalchemy.org/en/20/orm/dataclasses.html#declarative-dataclass-mapping), you can try running structure on some data. This works if there is no init=False column
But fails, if we try to structure a class with a init=False field
The text was updated successfully, but these errors were encountered: