mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-27 04:02:18 +08:00
@@ -26,9 +26,9 @@ class BaseOutput(object):
|
||||
self.path = []
|
||||
par = definition
|
||||
while par is not None:
|
||||
if not isinstance(self.stripped_definition,
|
||||
(parsing.Flow, parsing.Statement, parsing.Import,
|
||||
evaluate.Array, parsing.Name)):
|
||||
if not par.isinstance(
|
||||
parsing.Flow, parsing.Statement, parsing.Import,
|
||||
evaluate.Array, parsing.Name):
|
||||
self.path.insert(0, par.name)
|
||||
par = par.parent()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user