]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add extra pep695 conversion step
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Mar 2024 17:47:01 +0000 (12:47 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Mar 2024 22:10:42 +0000 (17:10 -0500)
commit46587c16e132278a3c76ff23ca020a33f569a9d2
treec52ace9e76207654536f69af3448ffc8d74a5243
parenta817f3f778f99e2b5e96452a6850445d2816decb
add extra pep695 conversion step

Added support for the :pep:`695` ``TypeAliasType`` construct as well as the
python 3.12 native ``type`` keyword to work with ORM Annotated Declarative
form when using these constructs to link to a :pep:`593` ``Annotated``
container, allowing the resolution of the ``Annotated`` to proceed when
these constructs are used in a :class:`_orm.Mapped` typing container.

Fixes: #11130
Change-Id: I9a386943966de2107f15f08dfe6ed2aa84f7e86c
(cherry picked from commit 985193c407ffb891c8eed042fac6f9547a34d694)
doc/build/changelog/unreleased_20/11130.rst [new file with mode: 0644]
lib/sqlalchemy/orm/properties.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py