From 5bc82b9d4917bc6dccc82a5ad624241139488907 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sat, 10 Oct 2020 19:11:52 -0700 Subject: [PATCH] __iter__ should actually return an iterator --- masque/library/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/library/library.py b/masque/library/library.py index 7fc5a86..66d9f17 100644 --- a/masque/library/library.py +++ b/masque/library/library.py @@ -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