Fixes KeyAttrDict iterator

This commit is contained in:
xs5871 2023-02-11 09:35:11 +00:00 committed by xs5871
parent 705d3eb032
commit 5af52addf8

View File

@ -409,7 +409,9 @@ class KeyAttrDict:
__cache = [{}]
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):
# Overwrite existing reference.