Skip to content

Commit cae911d

Browse files
committed
add test for ignored error
1 parent ce1d1ef commit cae911d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test-data/unit/check-errorcodes.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ def some_function(x: int) -> int:
7373
x = lenn # E: Name "lenn" is not defined; did you mean "len"? [name-defined]
7474
[builtins fixtures/len.pyi]
7575

76+
[case testErrorCodeUndefinedNameSuggestionIgnored]
77+
my_variable = 42
78+
x = my_variabel # type: ignore[name-defined]
79+
y = my_variabel # type: ignore
80+
[builtins fixtures/module.pyi]
81+
7682
[case testErrorCodeUnclassifiedError]
7783
class A:
7884
def __init__(self) -> int: \

0 commit comments

Comments
 (0)