From 4f37ba41bdcc598f6df27d2555c2dde6a2105dd1 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 3 Apr 2022 18:11:42 +0300 Subject: [PATCH] Initialise float as 0.0 And skip Iterator type for now to avoid its complex subscripting --- src/pylast/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pylast/__init__.py b/src/pylast/__init__.py index 4b27806..e152c31 100644 --- a/src/pylast/__init__.py +++ b/src/pylast/__init__.py @@ -31,7 +31,6 @@ 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 @@ -197,7 +196,7 @@ class _Network: self.cache_backend = None self.proxy = None - self.last_call_time: float = 0 + self.last_call_time: float = 0.0 self.limit_rate = False # Load session_key and username from authentication token if provided @@ -796,7 +795,7 @@ class _ShelfCacheBackend: def __contains__(self, key) -> bool: return key in self.cache_keys - def __iter__(self) -> Iterator: + def __iter__(self): return iter(self.shelf.keys()) def get_xml(self, key):