Skip to content

Commit 36f8bcc

Browse files
committed
Remove inference test with underscore function
Remove a test that has a function named '_' that it calls directly, as naming functions '_' is now an error (which makes it impossible to test what that test was originally testing).
1 parent c29ccd4 commit 36f8bcc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test-data/unit/check-inference.test

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,12 +2751,6 @@ def foo() -> None:
27512751
pass
27522752
_().method() # E: "_" has no attribute "method"
27532753

2754-
[case testUnusedTargetNotDef]
2755-
def foo() -> None:
2756-
def _() -> int:
2757-
pass
2758-
_() + '' # E: Unsupported operand types for + ("int" and "str")
2759-
27602754
[case testUnusedTargetForLoop]
27612755
def f() -> None:
27622756
a = [(0, '', 0)]

0 commit comments

Comments
 (0)