typing.Annotated
does not flatten through typing.TypeAliasType
#130117
Labels
typing.Annotated
does not flatten through typing.TypeAliasType
#130117
Bug report
Bug description:
As described in the documentation, nested
Annotated
types are supposed to be flattened. This works well with legacy type aliases but not with thetype
statement introduced in python 3.12:CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
Union
,Literal
, andAnnotated
types referenced through a type alias are not flattened #130119The text was updated successfully, but these errors were encountered: