Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-05-08 21:30:42 +03:00
parent 836e98e73b
commit ba4b7969a5

View file

@ -40,7 +40,6 @@ class Dependees(Configs):
for pkg in self.packages: for pkg in self.packages:
dependees: dict = dict(self.find_requires(pkg)) dependees: dict = dict(self.find_requires(pkg))
print(f'{self.byellow}{pkg}{self.endc}') print(f'{self.byellow}{pkg}{self.endc}')
print(f"{'':>1}{self.llc}{self.hl}", end='') print(f"{'':>1}{self.llc}{self.hl}", end='')
@ -48,7 +47,6 @@ class Dependees(Configs):
print(f"{'':>1}{self.cyan}No dependees{self.endc}") print(f"{'':>1}{self.cyan}No dependees{self.endc}")
self.print_dependees(dependees) self.print_dependees(dependees)
self.summary_of_dependees(dependees, pkg) self.summary_of_dependees(dependees, pkg)
def choose_version(self, name: str) -> str: def choose_version(self, name: str) -> str:
@ -75,14 +73,12 @@ class Dependees(Configs):
str_dependency: str = f"{'':>4}{dependency}" str_dependency: str = f"{'':>4}{dependency}"
if n == 1: if n == 1:
str_dependency: str = f"{'':>1}{dependency}" str_dependency: str = f"{'':>1}{dependency}"
print(str_dependency) print(str_dependency)
def print_full_reverse(self, n: int, dependees: dict, requires: str) -> None: def print_full_reverse(self, n: int, dependees: dict, requires: str) -> None:
str_requires: str = f"{'':>5}{self.var}{self.hl} {self.violet}{requires}{self.endc}" str_requires: str = f"{'':>5}{self.var}{self.hl} {self.violet}{requires}{self.endc}"
if n == len(dependees): if n == len(dependees):
str_requires: str = f"{'':>5}{self.llc}{self.hl} {self.violet}{requires}{self.endc}" str_requires: str = f"{'':>5}{self.llc}{self.hl} {self.violet}{requires}{self.endc}"
print(str_requires) print(str_requires)
def summary_of_dependees(self, dependees: dict, pkg: str) -> None: def summary_of_dependees(self, dependees: dict, pkg: str) -> None: