8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e25c67 commit e43f3d2Copy full SHA for e43f3d2
test-data/unit/check-modules.test
@@ -262,6 +262,24 @@ main:1: error: Cannot find module named 'nonexistent'
262
main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
263
main:2: error: Unsupported left operand type for + ("None")
264
265
+[case testRepeatedImportStar]
266
+import a
267
+
268
+[file a.py]
269
+from b import *
270
+from c import greet
271
272
+[file b.py]
273
+HELLO = 'hello there'
274
275
+[file c.py]
276
+from a import HELLO
277
+def greet() -> None:
278
+ print(HELLO)
279
+ bad
280
281
+[builtins fixtures/list.pyi]
282
283
[case testAccessingUnknownModule]
284
import xyz
285
xyz.foo()
0 commit comments