forked from VimPlug/jedi
add __iter__method to InstanceElement, because it's needed for arrays
This commit is contained in:
@@ -1260,9 +1260,11 @@ class Array(Call):
|
||||
This is not only used for calls on the actual object, but for
|
||||
ducktyping, to invoke this function with anything as `self`.
|
||||
"""
|
||||
if isinstance(instance, Array):
|
||||
try:
|
||||
if instance.type in types:
|
||||
return True
|
||||
except AttributeError:
|
||||
pass
|
||||
return False
|
||||
|
||||
def __len__(self):
|
||||
|
||||
Reference in New Issue
Block a user