mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
Get rid of Array.values() and Array.__iter__().
This commit is contained in:
@@ -225,7 +225,7 @@ def collections_namedtuple(evaluator, obj, arguments):
|
||||
fields = _fields.obj.replace(',', ' ').split()
|
||||
elif isinstance(_fields, iterable.Array):
|
||||
try:
|
||||
fields = [v.obj for v in _fields.values()]
|
||||
fields = [v.obj for v in unite(_fields.py__iter__())]
|
||||
except AttributeError:
|
||||
return set()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user