]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Place DDLConstraintColumn Role in Mapped
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2023 19:56:17 +0000 (14:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2023 21:29:05 +0000 (16:29 -0500)
commit4cae82d51f80c8a7e1a23b26c74b07e01059b804
treed5c4e3b683611e9ecdda2e120aab2ea304edc67d
parent586df197615d91af56aefc0d5ff94ceac13154eb
Place DDLConstraintColumn Role in Mapped

Fixed typing issue where :func:`_orm.mapped_column` objects typed as
:class:`_orm.Mapped` wouldn't be accepted in schema constraints such as
:class:`_schema.ForeignKey`, :class:`_schema.UniqueConstraint` or
:class:`_schema.Index`.

Fixes: #9170
Change-Id: I41c76d224a1fa2377de151d2a713ba3f43bd245c
doc/build/changelog/unreleased_20/9170.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/properties.py
test/ext/mypy/plain_files/mapped_column.py