__iter__ should actually return an iterator
This commit is contained in:
parent
0f35eb5e58
commit
5bc82b9d49
@ -85,7 +85,7 @@ class Library:
|
||||
return self.get_primary(key)
|
||||
|
||||
def __iter__(self) -> Iterator[str]:
|
||||
return self.keys()
|
||||
return iter(self.keys())
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.primary
|
||||
|
Loading…
Reference in New Issue
Block a user