Commit 92781da
committed
Prove possibly-undefined errors disappear
This test fails with the error:
AssertionError: Command 3 (dmypy check -- bar.py) did not give expected output
--- Captured stderr call ---
Expected:
bar.py:4: error: Name "a" may be undefined [possibly-undefined] (diff)
== Return code: 1 (diff)
Actual:
(empty)
This test illustrates that possibly-undefined errors currently disappear
in the same way that 'Unused "type: ignore"' errors do as described in #9655.
Ref: #96551 parent b86e47d commit 92781da
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
0 commit comments