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:
Aldoo 2023-02-22 10:42:53 +01:00 committed by xs5871
parent 38acda77b4
commit 61cf527370

View File

@ -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):