Fixed D401,D210

This commit is contained in:
Dimitris Zlatanidis 2024-05-22 19:04:05 +03:00
parent 9d0992e2fd
commit 32754b4a54

View file

@ -225,7 +225,7 @@ class View(Configs): # pylint: disable=[R0902]
self.ascii.draw_package_line(package, version, size, self.red, repository)
def summary(self, package: str) -> None:
"""Counts packages per method.
"""Count packages per method.
Args:
package (str): Package name.
@ -254,7 +254,7 @@ class View(Configs): # pylint: disable=[R0902]
self.sum_remove += 1
def set_summary_for_build(self, packages: list) -> None:
"""Sets summary message for build.
"""Set summary message for build.
Args:
packages (list): List of packages.
@ -264,7 +264,7 @@ class View(Configs): # pylint: disable=[R0902]
f'will be build in {self.tmp_path} folder.{self.endc}')
def set_summary_for_install_and_upgrade(self, install: int, upgrade: int, size_comp: int, size_uncomp: int) -> None:
"""Sets summary for install or upgrade.
"""Set summary for install or upgrade.
Args:
install (int): Counts for installs.
@ -290,7 +290,7 @@ class View(Configs): # pylint: disable=[R0902]
self.summary_message: str = f'{total_packages}{split_message}{total_sizes}{custom_message}{upgrade_message}'
def set_summary_for_remove(self, remove: int, size_rmv: int) -> None:
"""Sets summary for removes.
"""Set summary for removes.
Args:
remove (int): Counts of removes.
@ -302,7 +302,7 @@ class View(Configs): # pylint: disable=[R0902]
f'of space will be freed up.{self.endc}')
def set_summary_for_download(self, packages: list, size_comp: int) -> None:
"""Sets summary for downloads.
"""Set summary for downloads.
Args:
packages (list): List of packages.
@ -313,7 +313,7 @@ class View(Configs): # pylint: disable=[R0902]
f'will be downloaded in {self.download_only} folder.{self.endc}')
def build_package_and_version(self, package: str) -> str:
""" Builds package and version.
"""Build package and version.
Args:
package (str): Package name.