Skip to content

Commit 2421d80

Browse files
author
Guido van Rossum
committed
Update some [stale] sections (manually verified these are now expected)
1 parent ff12761 commit 2421d80

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

test-data/unit/check-incremental.test

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def func2() -> str:
537537
return "foo"
538538

539539
[rechecked mod0, mod1, mod2]
540-
[stale mod2]
540+
[stale mod0, mod2]
541541
[out2]
542542
tmp/mod1.py:4: error: Incompatible return value type (got "str", expected "int")
543543

@@ -1113,7 +1113,7 @@ val = "foo"
11131113

11141114
[builtins fixtures/module_all.pyi]
11151115
[rechecked main, c, c.submodule]
1116-
[stale]
1116+
[stale c]
11171117
[out2]
11181118
tmp/c/submodule.py:2: error: Incompatible types in assignment (expression has type "str", variable has type "int")
11191119
tmp/main.py:7: error: "C" has no attribute "foo"
@@ -1347,7 +1347,7 @@ class C:
13471347
def foo(self) -> int: return 1
13481348

13491349
[rechecked mod3, mod2, mod1]
1350-
[stale mod3, mod2]
1350+
[stale mod3]
13511351
[out1]
13521352
tmp/mod3.py:5: error: Incompatible types in assignment (expression has type "str", variable has type "int")
13531353
tmp/mod1.py:3: error: Revealed type is 'builtins.int'
@@ -1429,7 +1429,7 @@ class C:
14291429
def foo(self) -> str: return 'a'
14301430

14311431
[rechecked mod4, mod3, mod2, mod1]
1432-
[stale mod4, mod3, mod2]
1432+
[stale mod4, mod3]
14331433
[out1]
14341434
tmp/mod3.py:5: error: Incompatible types in assignment (expression has type "str", variable has type "int")
14351435
tmp/mod1.py:3: error: Revealed type is 'builtins.int'
@@ -3435,14 +3435,21 @@ extra = 1
34353435

34363436
[case testErrorsAffectDependentsOnly]
34373437
# cmd: mypy -m m.a m.b m.c
3438+
34383439
[file m/__init__.py]
3440+
34393441
[file m/a.py]
34403442
1 + '' # Deliberate error
3443+
34413444
[file m/b.py]
34423445
import m.a # Depends on module with error
3446+
34433447
[file m/c.py]
34443448
import m # No error here
3449+
34453450
[rechecked m.a, m.b]
3451+
[stale]
3452+
34463453
[out1]
34473454
tmp/m/a.py:1: error: Unsupported operand types for + ("int" and "str")
34483455
[out2]

0 commit comments

Comments
 (0)