]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
General improvement on annotated declarative
authorFederico Caselli <cfederico87@gmail.com>
Tue, 19 Nov 2024 22:12:51 +0000 (23:12 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 12 Dec 2024 21:10:06 +0000 (22:10 +0100)
commit43d29b9695eb8229c70fafe87616ccc9ad969b3f
treeacb244c7675ac4bea736c9a9e645fb1f822e09ad
parent889800cce0b6f676fe864b7be5de98d8c9d1164a
General improvement on annotated declarative

Fix issue that resulted in inconsistent handing of unions
depending on how they were declared

Consistently support TypeAliasType. This has required a revision
of the implementation added in #11305 to have a consistent
behavior.

References: #11944
References: #11955
References: #11305
Change-Id: Iffc34fd42b9769f73ddb4331bd59b6b37391635d
(cherry picked from commit e6b0b421d60ecf660cf3872f3f32dd2b7a739b59)
16 files changed:
doc/build/changelog/unreleased_20/11944.rst [new file with mode: 0644]
doc/build/changelog/unreleased_20/11955.rst [new file with mode: 0644]
doc/build/orm/declarative_tables.rst
lib/sqlalchemy/orm/decl_api.py
lib/sqlalchemy/orm/decl_base.py
lib/sqlalchemy/orm/descriptor_props.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/util/typing.py
test/base/test_typing_utils.py [new file with mode: 0644]
test/base/test_utils.py
test/orm/declarative/test_tm_future_annotations.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py
tools/format_docs_code.py