We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b8d5ae commit 1471cb4Copy full SHA for 1471cb4
test-data/unit/check-modules.test
@@ -1220,6 +1220,22 @@ x = 1 + 1
1220
[out]
1221
tmp/a.py:3: error: Revealed type is 'builtins.int'
1222
1223
+[case testThreePassesRequired]
1224
+# flags: --hide-error-context
1225
+import b
1226
+[file a.py]
1227
1228
+class C:
1229
+ def f1(self) -> None:
1230
+ self.x2
1231
+ def f2(self) -> None:
1232
+ self.x2 = b.b
1233
+[file b.py]
1234
+import a
1235
+b = 1 + 1
1236
+[out]
1237
+tmp/a.py:4: error: Cannot determine type of 'x2'
1238
+
1239
1240
-- Scripts and __main__
1241
0 commit comments