Fix pylint in downloaders

This commit is contained in:
I-Al-Istannen 2020-04-20 19:48:59 +02:00
parent d18b48aaf4
commit 55ba2f4070

View File

@ -39,7 +39,12 @@ class HttpDownloader():
) )
return session return session
def download(self, url: str, target_path: Path, parameters: Optional[Dict[str, Any]] = None) -> None: def download(
self,
url: str,
target_path: Path,
parameters: Optional[Dict[str, Any]] = None,
) -> None:
"""Download a given url to a given path, optionally with some get parameters.""" """Download a given url to a given path, optionally with some get parameters."""
parameters = parameters if parameters else {} parameters = parameters if parameters else {}
with self._session.get(url, params=parameters, stream=True) as response: with self._session.get(url, params=parameters, stream=True) as response: