Fixes KeyAttrDict iterator
This commit is contained in:
parent
705d3eb032
commit
5af52addf8
@ -409,7 +409,9 @@ class KeyAttrDict:
|
|||||||
__cache = [{}]
|
__cache = [{}]
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return self.__cache.__iter__()
|
for partition in self.__cache:
|
||||||
|
for name in partition.__iter__():
|
||||||
|
yield name
|
||||||
|
|
||||||
def __setitem__(self, name: str, key: Key):
|
def __setitem__(self, name: str, key: Key):
|
||||||
# Overwrite existing reference.
|
# Overwrite existing reference.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user