Initialise float as 0.0

And skip Iterator type for now to avoid its complex subscripting
This commit is contained in:
Hugo van Kemenade 2022-04-03 18:11:42 +03:00 committed by GitHub
parent ac991cbd2c
commit 4f37ba41bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):