]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use proper functions to get typing origin, args
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Sep 2024 03:08:21 +0000 (23:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Sep 2024 03:09:22 +0000 (23:09 -0400)
commit3d879a4413ae8c004b5613fde4003ce186ec51db
tree2fe96c9b71f16055c91e5d5980cfd562c5d619a1
parentc2218b2633a36bf7d8a23d5c10df04d08f408501
use proper functions to get typing origin, args

Fixed regression caused by issue :ticket:`11814` which broke support for
certain flavors of :pep:`593` ``Annotated`` in the type_annotation_map when
builtin types such as ``list``, ``dict`` were used without an element type.
While this is an incomplete style of typing, these types nonetheless
previously would be located in the type_annotation_map correctly.

Fixes: #11831
Change-Id: I6ea7fc1bce462d44ffcf67ef18b60050dfc2c91e
(cherry picked from commit e51ff826b9374cadb8eded370a808bc4dcbe56ba)
doc/build/changelog/unreleased_20/11831.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