]> 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:36 +0000 (17:10 -0500)
commit985193c407ffb891c8eed042fac6f9547a34d694
treeb19ceeacd0c7b6aaadd16eb9b9b753654e91d3ff
parent10fb1328ba53f0dc64355b45abd9e4e321589fae
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
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