We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ced40 commit ff5078eCopy full SHA for ff5078e
1 file changed
Lib/test/test_typing.py
@@ -5855,6 +5855,8 @@ def __typing_subst__(*_):
5855
return 42 # not tuple
5856
5857
evil = EvilTypeVar()
5858
+ # Create a dummy TypeAlias that will be given the evil generic from
5859
+ # above.
5860
type type_alias[*_] = 0
5861
with self.assertRaisesRegex(TypeError, ".+__typing_subst__.+tuple.+int.*"):
5862
type_alias[evil][0]
0 commit comments