summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2023-01-28 14:56:17 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2023-01-28 16:29:05 -0500
commit4cae82d51f80c8a7e1a23b26c74b07e01059b804 (patch)
treed5c4e3b683611e9ecdda2e120aab2ea304edc67d /lib/sqlalchemy/orm/attributes.py
parent586df197615d91af56aefc0d5ff94ceac13154eb (diff)
downloadsqlalchemy-4cae82d51f80c8a7e1a23b26c74b07e01059b804.tar.gz
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
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r--lib/sqlalchemy/orm/attributes.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py
index 261a633a3..cdc729f73 100644
--- a/lib/sqlalchemy/orm/attributes.py
+++ b/lib/sqlalchemy/orm/attributes.py
@@ -135,7 +135,6 @@ class QueryableAttribute(
interfaces.PropComparator[_T],
roles.JoinTargetRole,
roles.OnClauseRole,
- roles.DDLConstraintColumnRole,
sql_base.Immutable,
cache_key.SlotsMemoizedHasCacheKey,
util.MemoizedSlots,