Removed extra ".__iter__()" in KeyAttrDict iterator: iterating elements in the partition already implicitly calls its __iter__ method.
Actually using the dictionary iterator with this extra call would trigger an error since an iterator does not have an iterator. This is no longer the case.
This commit is contained in:
parent
38acda77b4
commit
61cf527370
@ -435,7 +435,7 @@ class KeyAttrDict:
|
||||
|
||||
def __iter__(self):
|
||||
for partition in self.__cache:
|
||||
for name in partition.__iter__():
|
||||
for name in partition:
|
||||
yield name
|
||||
|
||||
def __setitem__(self, name: str, key: Key):
|
||||
|
Loading…
Reference in New Issue
Block a user