FIxed D401,D210

This commit is contained in:
Dimitris Zlatanidis 2024-05-22 16:35:13 +03:00
parent 3c3441f42c
commit 56b7bb04c4

View file

@ -41,7 +41,7 @@ class SearchPackage(Configs): # pylint: disable=[R0902]
self.summary_of_searching() self.summary_of_searching()
def search_to_all_repositories(self) -> None: def search_to_all_repositories(self) -> None:
"""Search package name to all enabled repositories. """ """Search package name to all enabled repositories."""
all_data: dict = self.data all_data: dict = self.data
for name, repo in all_data.items(): for name, repo in all_data.items():
self.repo_data: dict = repo self.repo_data: dict = repo
@ -66,7 +66,7 @@ class SearchPackage(Configs): # pylint: disable=[R0902]
} }
def summary_of_searching(self) -> None: def summary_of_searching(self) -> None:
"""Prints the result.""" """Print the result."""
try: try:
repo_length: int = max(len(repo['repository']) for repo in self.data_dict.values()) repo_length: int = max(len(repo['repository']) for repo in self.data_dict.values())
except ValueError: except ValueError: