]> 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:45:47 +0000 (18:45 -0400)
commitce26cfa5d5253345a5f962359e5c742ea039c211
tree9536a6acea59c0592fdeff005003405782a4d204
parente15890b455b14542bb17cdb208e6d3b723799ed6
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
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