]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add Mapped to _ORMColCollectionElement
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 26 Jan 2023 14:23:07 +0000 (09:23 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 26 Jan 2023 14:25:35 +0000 (09:25 -0500)
commitf129645b3f54af924ef37f0d092f17fc8a532fb3
treec433c9e781945916883863bf105699e07fcfff4d
parente299e212bf1143329dd9c92a44c89f0fa54bf821
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
doc/build/changelog/unreleased_20/more_typing.rst
lib/sqlalchemy/orm/relationships.py
test/ext/mypy/plain_files/experimental_relationship.py