Remove the ImportWrapper and replace it with something simpler.
This commit is contained in:
1 parent
173c939956
commit
57857b6332
7 files changed
+53
-74
No files matched your search
+1
-2
@@ -500,8 +500,7 @@ class Completion(BaseDefinition):
|
||||
definition = self._definition
|
||||
if definition.isinstance(tree.Import):
|
||||
raise DeprecationWarning
|
||||
i = imports.ImportWrapper(self._evaluator, self._name)
|
||||
return i.follow()
|
||||
return imports.infer_import(self._evaluator, self._name)
|
||||
return super(Completion, self)._follow_statements_imports()
|
||||
|
||||
@memoize_method
|
||||
|
||||
Reference in new issue
Block a user