]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
improve pep-695 inference including Enum support
authorAlc-Alc <alc@localhost>
Thu, 25 Apr 2024 19:42:34 +0000 (15:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 2 May 2024 22:47:24 +0000 (18:47 -0400)
commit11b977fdfb1f137eeb3283bc2166cf02af565d23
treed17876f599a0c101f0ecb5c92f294803081cf819
parentcdf250d4afb20c66d8e71654ba3c87c0d5c2789b
improve pep-695 inference including Enum support

Fixed issue in ORM Annotated Declarative where typing issue where literals
defined using :pep:`695` type aliases would not work with inference of
:class:`.Enum` datatypes. Pull request courtesy of Alc-Alc.

Fixes: #11305
Closes: #11313
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/11313
Pull-request-sha: 090f0d865c4129cffffbce6a6ce3db9b91602460

Change-Id: Iac63302ad74fd7018a34a50c80ec3aeb87dc94a4
(cherry picked from commit ce26cfa5d5253345a5f962359e5c742ea039c211)
doc/build/changelog/unreleased_20/11305.rst [new file with mode: 0644]
lib/sqlalchemy/orm/decl_api.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py