Fixed the docstrings

This commit is contained in:
Dimitris Zlatanidis 2024-05-21 19:31:38 +03:00
parent bfb6c3bcb8
commit 63e8429068

View file

@ -9,10 +9,7 @@ from slpkg.views.asciibox import AsciiBox
class Dependees(Configs): # pylint: disable=[R0902]
"""
Prints the packages that depend on.
"""
"""Prints the packages that depend on."""
def __init__(self, data: dict, packages: list, flags: list):
super(Configs, self).__init__()
@ -35,8 +32,7 @@ class Dependees(Configs): # pylint: disable=[R0902]
('-p', '--pkg-version'), flags)
def find(self) -> None:
""" Calls the methods.
"""
"""Calls the methods."""
print('The list below shows the packages that dependees on:\n')
self.packages: list = self.utils.apply_package_pattern(self.data, self.packages)
@ -48,7 +44,7 @@ class Dependees(Configs): # pylint: disable=[R0902]
self.view_summary_of_dependees(dependees, package)
def set_the_package_version(self, package: str) -> None:
""" Set the version of the package.
"""Set the version of the package.
Args:
package (str): Package name.
@ -69,7 +65,7 @@ class Dependees(Configs): # pylint: disable=[R0902]
yield name, data['requires']
def view_no_dependees(self, dependees: dict) -> None:
""" Prints for no dependees.
"""Prints for no dependees.
Args:
dependees (dict): Packages data.
@ -78,7 +74,7 @@ class Dependees(Configs): # pylint: disable=[R0902]
print(f"{'':>1}{self.cyan}No dependees{self.endc}")
def view_the_main_package(self, package: str) -> None:
""" Prints the main package.
"""Prints the main package.
Args:
package (str): Package name.
@ -88,7 +84,7 @@ class Dependees(Configs): # pylint: disable=[R0902]
@staticmethod
def view_dependency_line(n: int, dependency: str) -> None:
""" Prints the dependency line.
"""Prints the dependency line.
Args:
n (int): Line number.
@ -100,7 +96,7 @@ class Dependees(Configs): # pylint: disable=[R0902]
print(str_dependency)
def view_dependees(self, dependees: dict) -> None:
""" View packages that depend on.
"""View packages that depend on.
Args:
dependees (dict): Packages data.
@ -121,7 +117,7 @@ class Dependees(Configs): # pylint: disable=[R0902]
self.view_full_reverse(n, dependees, requires)
def view_full_reverse(self, n: int, dependees: dict, requires: str) -> None:
""" Prints all packages.
"""Prints all packages.
Args:
n (int): Number of line.
@ -134,7 +130,7 @@ class Dependees(Configs): # pylint: disable=[R0902]
print(line_requires)
def view_summary_of_dependees(self, dependees: dict, package: str) -> None:
""" Prints the summary.
"""Prints the summary.
Args:
dependees (dict): Packages data.