From 14e091c8706881acaf88f0a19a86e84ffaee1f9b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 3 Apr 2022 12:49:01 +0300 Subject: [PATCH] autotyping: --annotate-imprecise-magics: add imprecise type annotations for some additional magic methods --- src/pylast/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pylast/__init__.py b/src/pylast/__init__.py index 3ed1604..162d0f1 100644 --- a/src/pylast/__init__.py +++ b/src/pylast/__init__.py @@ -31,6 +31,7 @@ import ssl import tempfile import time import xml.dom +from typing import Iterator from urllib.parse import quote_plus from xml.dom import Node, minidom @@ -795,7 +796,7 @@ class _ShelfCacheBackend: def __contains__(self, key) -> bool: return key in self.cache_keys - def __iter__(self): + def __iter__(self) -> Iterator: return iter(self.shelf.keys()) def get_xml(self, key):