Fixed D401

This commit is contained in:
Dimitris Zlatanidis 2024-05-22 17:25:31 +03:00
parent dff51401c1
commit 6b18e56057

View file

@ -15,7 +15,7 @@ from slpkg.views.views import View
class Downloader(Configs): # pylint: disable=[R0902] class Downloader(Configs): # pylint: disable=[R0902]
"""Downloads the sources using external tools.""" """Download the sources using external tools."""
def __init__(self, flags: list): def __init__(self, flags: list):
super(Configs, self).__init__() super(Configs, self).__init__()
@ -41,7 +41,7 @@ class Downloader(Configs): # pylint: disable=[R0902]
('-P', '--parallel'), flags) ('-P', '--parallel'), flags)
def download(self, sources: dict) -> None: def download(self, sources: dict) -> None:
"""Starting the processing for downloading.""" """Start the process for downloading."""
if self.parallel_downloads or self.option_for_parallel: if self.parallel_downloads or self.option_for_parallel:
self.parallel_download(sources) self.parallel_download(sources)
else: else:
@ -114,7 +114,7 @@ class Downloader(Configs): # pylint: disable=[R0902]
self.downloader_command: str = f'{self.downloader} {self.lftp_get_options} {url} -o {path}' self.downloader_command: str = f'{self.downloader} {self.lftp_get_options} {url} -o {path}'
def check_if_downloaded(self, url: str, path: Path) -> None: def check_if_downloaded(self, url: str, path: Path) -> None:
"""Checking if file downloaded. """Check for downloaded.
Args: Args:
url (str): URL link. url (str): URL link.