]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix use of typing.Literal on Python 3.8 and 3.9
authorFrazer McLean <frazer@frazermclean.co.uk>
Thu, 5 Sep 2024 11:29:47 +0000 (07:29 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Sep 2024 15:38:47 +0000 (11:38 -0400)
commit9dc96cef939fdf44918641bd1575ba2ccb09c8b1
treec398957483a2528bc95b1ecc6b25b90fc4a40c85
parentfb02aa96c24204cb317f6369d74e85e903a6d978
Fix use of typing.Literal on Python 3.8 and 3.9

Fixed issue where it was not possible to use ``typing.Literal`` with
``Mapped[]`` on Python 3.8 and 3.9.  Pull request courtesy Frazer McLean.

Closes: #11825
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/11825
Pull-request-sha: e1e50a97d2a6e0e9ef7ba8dc1a5f07d252e79fa4

Change-Id: Idf04326abcba45813ad555127e81d581a0353587
(cherry picked from commit 509c6d58501679a5844631faf9d7cb751218d7a0)
doc/build/changelog/unreleased_20/11820.rst [new file with mode: 0644]
lib/sqlalchemy/util/typing.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py