mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-19 10:22:47 +08:00
fix a ModuleWrapper with StarImports. Now all modules are wrapped.
This commit is contained in:
@@ -100,3 +100,14 @@ string = '%s %s' % (1, 2)
|
||||
# Shouldn't raise an error, because `string` is really just a string, not an
|
||||
# array or something.
|
||||
string.upper
|
||||
|
||||
# -----------------
|
||||
# imports
|
||||
# -----------------
|
||||
|
||||
# Star imports and the like in modules should not cause attribute errors in
|
||||
# this module.
|
||||
import import_tree
|
||||
|
||||
import_tree.a
|
||||
import_tree.b
|
||||
|
||||
5
test/static_analysis/import_tree/__init__.py
Normal file
5
test/static_analysis/import_tree/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""
|
||||
Another import tree, this time not for completion, but static analysis.
|
||||
"""
|
||||
|
||||
from .a import *
|
||||
1
test/static_analysis/import_tree/a.py
Normal file
1
test/static_analysis/import_tree/a.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import b
|
||||
0
test/static_analysis/import_tree/b.py
Normal file
0
test/static_analysis/import_tree/b.py
Normal file
Reference in New Issue
Block a user