Skip to content

Commit 868a6cc

Browse files
committed
allow alternative locations for some typeddict method errors
1 parent 54b6ce2 commit 868a6cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

conformance/tests/typeddicts_class_syntax.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ def method1(self): # E
3030
pass
3131

3232
# Methods are not allowed, so this should generate an error.
33-
@classmethod # E
34-
def method2(cls):
33+
@classmethod # E[method2]
34+
def method2(cls): # E[method2]
3535
pass
3636

3737
# Methods are not allowed, so this should generate an error.
38-
@staticmethod # E
39-
def method3():
38+
@staticmethod # E[method3]
39+
def method3(): # E[method3]
4040
pass
4141

4242

0 commit comments

Comments
 (0)