mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 07:14:48 +08:00
dynamic arrays in executions and instances should now work fully, some things got simplified, now it works.
This commit is contained in:
@@ -80,7 +80,7 @@ class Simple(Base):
|
||||
def get_parent_until(self, *classes):
|
||||
""" Takes always the parent, until one class (not a Class) """
|
||||
scope = self
|
||||
while not (scope.parent() is None or scope.__class__ in classes):
|
||||
while not (scope.parent() is None or scope.isinstance(*classes)):
|
||||
scope = scope.parent()
|
||||
return scope
|
||||
|
||||
|
||||
Reference in New Issue
Block a user