mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-20 23:52:05 -04:00
7a823b5f81
The is_pep695() function incorrectly identified Annotated[TypeAliasType, ...] as a PEP 695 type alias because Annotated's __origin__ attribute returns the first type argument (the TypeAliasType) rather than Annotated itself. This caused _init_column_for_annotation to crash with AttributeError when attempting to access __value__ on the Annotated wrapper. Added a check for is_pep593() before recursing through __origin__ in is_pep695(), so Annotated types are correctly excluded. Fixes: #13386 Change-Id: I36ef83ebbab5abc08bed0131efb552c3fc001911