mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-15 01:57:06 +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):
|
def get_parent_until(self, *classes):
|
||||||
scope = self.var.get_parent_until(*classes)
|
scope = self.var.get_parent_until(*classes)
|
||||||
|
if isinstance(scope, parsing.Module):
|
||||||
|
return scope
|
||||||
|
else:
|
||||||
return InstanceElement(self.instance, scope)
|
return InstanceElement(self.instance, scope)
|
||||||
|
|
||||||
def get_decorated_func(self):
|
def get_decorated_func(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user