mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-05 04:48:47 +08:00
goto_assignments more readable
This commit is contained in:
1 parent
832f05b4a1
commit
649135ea7b
1 file changed
+2
-1
+2
-1
@@ -341,7 +341,8 @@ class Script(object):
|
||||
|
||||
:rtype: list of :class:`api_classes.Definition`
|
||||
"""
|
||||
d = [api_classes.Definition(d) for d in set(self._goto()[0])
|
||||
results, _ = self._goto()
|
||||
d = [api_classes.Definition(d) for d in set(results)
|
||||
if not isinstance(d, imports.ImportPath._GlobalNamespace)]
|
||||
return self._sorted_defs(d)
|
||||
|
||||
|
||||
Reference in new issue
Block a user