]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use a private return class for the "catch all" relationship
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Nov 2023 15:27:19 +0000 (10:27 -0500)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 20 Mar 2024 20:40:07 +0000 (21:40 +0100)
commit33344b0aa423c71a2d5c91257033c8bab2c547f9
tree631472dedd92084625cb7d0a43920521ddd7238b
parent788e2a13d693435257c5e262acd7b77f319ef8f5
use a private return class for the "catch all" relationship

Fixed Declarative issue where typing a relationship using
:class:`_orm.Relationship` rather than :class:`_orm.Mapped` would
inadvertently pull in the "dynamic" relationship loader strategy for that
attribute.

Fixes: #10611
Change-Id: Ie4421050b583827fdf96c27ae9d7fe7ca596e77e
(cherry picked from commit 7cfb940b1a9392f6e3784aff8f487c37ebcd588b)
12 files changed:
doc/build/changelog/unreleased_20/10611.rst [new file with mode: 0644]
lib/sqlalchemy/ext/mypy/names.py
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/exc.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/util/langhelpers.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py
test/typing/plain_files/orm/relationship.py