]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add `dataclass_metadata` parameter to `mapped_column` and friends.
authorSigmund Lahn <s@lahn.no>
Thu, 22 May 2025 16:43:12 +0000 (18:43 +0200)
committerSigmund Lahn <s@lahn.no>
Fri, 23 May 2025 09:39:50 +0000 (11:39 +0200)
commit9246e162ab972b0edd81501cd7f867ff546b36b1
treea1eada00310941dce708b18f30c5bd506fd57d66
parent15f551f250ba689fb12fb3d01275d452d4b815fc
Add `dataclass_metadata` parameter to `mapped_column` and friends.

This parameter is then passed to `dataclasses.field()` if mapped as a
dataclass.

Fixes: #10674
lib/sqlalchemy/ext/associationproxy.py
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/decl_base.py
lib/sqlalchemy/orm/interfaces.py
test/orm/declarative/test_dc_transforms.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py