python / typing_extensions

Backported and experimental type hints for Python
Other
446 stars 110 forks source link

[3.14] Address invalid inputs of TypeAliasType #477

Closed Daraan closed 1 month ago

Daraan commented 1 month ago

I've prepared this draft which contains two changes:

It should maybe noted that for 3.12.0-3.12.7 the typing.TypeAliasType variant does not contain this stricter backport. I do not think that there is a necessity to do a backport for 3.12 and it will likely do more harm (I did not test it).

JelleZijlstra commented 1 month ago

I merged the upstream PR but did not backport it to 3.12 and 3.13, so this should now be ready to go. I'll push some buttons to do so and then review the code.