Skip to content

Commit 9e73f11

Browse files
committed
rename test and rewrite comment
1 parent 94a048a commit 9e73f11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test_typing_extensions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,9 +1207,8 @@ class My(enum.Enum):
12071207

12081208
self.assertEqual(Literal[My.A].__args__, (My.A,))
12091209

1210-
def test_illegal_parameters_do_not_raise_runtime_errors(self):
1211-
# Type checkers should reject these types, but we do not
1212-
# raise errors at runtime to maintain maximum flexibility
1210+
def test_nested_literals_are_allowed(self):
1211+
# These are explicitly allowed by the typing spec
12131212
Literal[int]
12141213
Literal[Literal[1, 2], Literal[4, 5]]
12151214
Literal[3j + 2, ..., ()]

0 commit comments

Comments
 (0)