1
0
forked from VimPlug/jedi

use the generalized _follow_statements_imports internally

This commit is contained in:
Dave Halter
2014-04-02 10:46:57 +02:00
parent c26b57bef6
commit 7763192850

View File

@@ -449,10 +449,10 @@ class Completion(BaseDefinition):
if isinstance(self._definition, pr.Import):
i = imports.ImportPath(self._evaluator, self._definition)
if len(i.import_path) > 1 or not fast:
followed = self.follow_definition()
followed = self._follow_statements_imports()
if followed:
# TODO: Use all of the followed objects as input to Documentation.
definition = followed[0]._definition
definition = followed[0]
return Documentation(definition)
@property