mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
fixed a recursion problem with InstanceElements
This commit is contained in:
@@ -270,6 +270,9 @@ class InstanceElement(object):
|
||||
|
||||
def get_parent_until(self, *classes):
|
||||
scope = self.var.get_parent_until(*classes)
|
||||
if isinstance(scope, parsing.Module):
|
||||
return scope
|
||||
else:
|
||||
return InstanceElement(self.instance, scope)
|
||||
|
||||
def get_decorated_func(self):
|
||||
|
||||
Reference in New Issue
Block a user