mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 03:50:12 +08:00
goto on import statement (only import) raised an error
This commit is contained in:
1 parent
c5169b2d66
commit
384334ae06
2 files changed
+7
-4
No files matched your search
+2
-1
@@ -342,7 +342,8 @@ class Script(object):
|
||||
|
||||
:rtype: list of :class:`api_classes.Definition`
|
||||
"""
|
||||
d = [api_classes.Definition(d) for d in set(self._goto()[0])]
|
||||
d = [api_classes.Definition(d) for d in set(self._goto()[0])
|
||||
if not isinstance(d, imports.ImportPath._GlobalNamespace)]
|
||||
return self._sorted_defs(d)
|
||||
|
||||
def _goto(self, add_import_name=False):
|
||||
|
||||
Reference in new issue
Block a user