mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 09:48:36 +08:00
solved goto-import problems
This commit is contained in:
+3
-1
@@ -49,7 +49,9 @@ class ImportPath(object):
|
||||
|
||||
def get_nested_import(self, parent):
|
||||
i = self.import_stmt
|
||||
zero = (1,0)
|
||||
# This is not an existing Import statement. Therefore, set position to
|
||||
# None.
|
||||
zero = (None, None)
|
||||
n = parsing.Name(i.namespace.names[1:], zero, zero)
|
||||
new = parsing.Import(zero, zero, n)
|
||||
new.parent = parent
|
||||
|
||||
Reference in New Issue
Block a user