mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-05 06:44:14 +08:00
Support case like from os.path import join as pjoin
This commit is contained in:
@@ -576,7 +576,8 @@ class Interpreter(Script):
|
||||
# Import functions and classes
|
||||
module = getattr(obj, '__module__', None)
|
||||
if module:
|
||||
fakeimport = self._make_fakeimport(module, variable)
|
||||
fakeimport = self._make_fakeimport(module, obj.__name__,
|
||||
variable)
|
||||
scope.add_import(fakeimport)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user