]> 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:08:21 +0000 (23:08 -0400)
commite51ff826b9374cadb8eded370a808bc4dcbe56ba
tree8ec7c50c9bf64eeb3d3112f03f6f2a91b2659a0a
parent9b4761222e1322c3e1b0505d7f0057598e7702a8
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
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