]> 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:39 +0000 (21:40 +0100)
commit674303456cf3264504fbd9c9e1833d4c6f74b01e
tree5c0f073d05f416d85d89994ad55aaf53fae43187
parent82ae47ba9959c63cfaa9169869ef08db61f71fd7
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
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