File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1244,7 +1244,7 @@ main:1: note: ... from here:
1244
1244
tmp/a.py: note: In member "f1" of class "C":
1245
1245
tmp/a.py:4: error: Cannot determine type of 'x2'
1246
1246
1247
- [case testErrorInPassTwo ]
1247
+ [case testErrorInPassTwo1 ]
1248
1248
import b
1249
1249
[file a.py]
1250
1250
import b
@@ -1260,6 +1260,21 @@ main:1: note: ... from here:
1260
1260
tmp/a.py: note: In function "f":
1261
1261
tmp/a.py:4: error: Unsupported operand types for + ("int" and "str")
1262
1262
1263
+ [case testErrorInPassTwo2]
1264
+ import a
1265
+ [file a.py]
1266
+ import b
1267
+ def f() -> None:
1268
+ a = b.x + 1
1269
+ a + ''
1270
+ [file b.py]
1271
+ import a
1272
+ x = 1 + 1
1273
+ [out]
1274
+ main:1: note: In module imported here:
1275
+ tmp/a.py: note: In function "f":
1276
+ tmp/a.py:4: error: Unsupported operand types for + ("int" and "str")
1277
+
1263
1278
[case testDeferredDecorator]
1264
1279
import a
1265
1280
[file a.py]
You can’t perform that action at this time.
0 commit comments