Fixed for typing

This commit is contained in:
Dimitris Zlatanidis 2023-05-29 22:07:32 +03:00
parent 49d149b8ac
commit 3dc59181b0

View file

@ -38,7 +38,7 @@ class Downloader(Configs):
else:
self.normal_download(sources)
def parallel_download(self, sources):
def parallel_download(self, sources: dict) -> None:
""" Download sources with parallel mode. """
processes: list = []
for urls, path in sources.values():
@ -50,7 +50,7 @@ class Downloader(Configs):
for process in processes:
process.join()
def normal_download(self, sources):
def normal_download(self, sources: dict) -> None:
""" Download sources with normal mode. """
for urls, path in sources.values():
for url in urls: