]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
force uselist=False for all collection class not present
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jan 2024 16:36:20 +0000 (11:36 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jan 2024 17:01:32 +0000 (12:01 -0500)
commitc1139c2e5d2f14738798d3c0deb876286014c808
tree86090e9b60c274c2316cee0ceee5fad71541946a
parenta5b0a99f2abc08767866b387cc9f210f3e37158b
force uselist=False for all collection class not present

Fixed issue where ORM Annotated Declarative would mis-interpret the left
hand side of a relationship without any collection specified as
uselist=True if the left type were given as a class and not a string,
without using future-style annotations.

Fixes: #10815
Change-Id: I85daccec03f7e6ea3b49eb07c06e0f85e361a1c0
doc/build/changelog/unreleased_20/10815.rst [new file with mode: 0644]
lib/sqlalchemy/orm/relationships.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py