summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2023-01-26 09:23:07 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2023-01-26 09:25:35 -0500
commitf129645b3f54af924ef37f0d092f17fc8a532fb3 (patch)
treec433c9e781945916883863bf105699e07fcfff4d /lib/sqlalchemy
parente299e212bf1143329dd9c92a44c89f0fa54bf821 (diff)
downloadsqlalchemy-f129645b3f54af924ef37f0d092f17fc8a532fb3.tar.gz
add Mapped to _ORMColCollectionElement
Fixed issue where using the :paramref:`_orm.relationship.remote_side` and similar parameters, passing an annotated declarative object typed as :class:`_orm.Mapped`, would not be accepted by the type checker. Fixes: #9150 Change-Id: I5770c17ee4ad8c54661354da9582ec3c4706ffcc
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/relationships.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py
index 66d3a6035..05fa17a96 100644
--- a/lib/sqlalchemy/orm/relationships.py
+++ b/lib/sqlalchemy/orm/relationships.py
@@ -175,7 +175,7 @@ _ORMOrderByArgument = Union[
ORMBackrefArgument = Union[str, Tuple[str, Dict[str, Any]]]
_ORMColCollectionElement = Union[
- ColumnClause[Any], _HasClauseElement, roles.DMLColumnRole
+ ColumnClause[Any], _HasClauseElement, roles.DMLColumnRole, "Mapped[Any]"
]
_ORMColCollectionArgument = Union[
str,