]> 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)
committerMichael Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Sep 2024 12:26:14 +0000 (12:26 +0000)
commit29c2c15902094965f9dca66efae33305f09c3878
treee98778ea106e2adbf77e089f5eb3bfd0c5dfa7a4
parent2363b2f37cab51313d5eb86fd8bf7beffd34e17e
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.

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

Change-Id: Idf04326abcba45813ad555127e81d581a0353587
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