We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bab47b commit a078583Copy full SHA for a078583
test-data/unit/check-modules.test
@@ -1313,3 +1313,27 @@ pass
1313
[file b]
1314
pass
1315
[out]
1316
+
1317
+[case testTypeCheckPrio]
1318
+# cmd: mypy -m part1 part2 part3 part4
1319
1320
+[file part1.py]
1321
+from part3 import Thing
1322
+class FirstThing: pass
1323
1324
+[file part2.py]
1325
+from part4 import part4_thing as Thing
1326
1327
+[file part3.py]
1328
+from part2 import Thing
1329
+reveal_type(Thing)
1330
1331
+[file part4.py]
1332
+from typing import TYPE_CHECKING
1333
+if TYPE_CHECKING:
1334
+ from part1 import FirstThing
1335
+def part4_thing(a: int) -> str: pass
1336
1337
+[builtins fixtures/bool.pyi]
1338
+[out]
1339
+tmp/part3.py:2: error: Revealed type is 'def (a: builtins.int) -> builtins.str'
0 commit comments