Skip to content

Commit 8cfbc5a

Browse files
committed
Allow type checkers to disallow TypeVars in a nested class' __init__
1 parent 04c0df5 commit 8cfbc5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conformance/tests/generics_scoping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Bad(Iterable[T]): # E
7777
class AlsoBad:
7878
x: list[T] # E
7979

80-
def __init__(self, x: list[T]) -> None:
80+
def __init__(self, x: list[T]) -> None: # E?
8181
self.x = x
8282

8383
class Inner(Iterable[S]): # OK

0 commit comments

Comments
 (0)