Updated for typing

This commit is contained in:
Dimitris Zlatanidis 2023-05-18 20:36:26 +03:00
parent d2a78b79f9
commit 2be33d8780

View file

@ -78,7 +78,7 @@ class Check(Configs):
self.errors.raise_error_message("You need to update the package lists first, run:\n\n" self.errors.raise_error_message("You need to update the package lists first, run:\n\n"
f"{'':>14}$ slpkg update", exit_status=1) f"{'':>14}$ slpkg update", exit_status=1)
def count_of_repositories(self): def count_of_repositories(self) -> None:
for repository, item in self.repos.repositories.items(): for repository, item in self.repos.repositories.items():
if item['path'] and item['enable']: if item['path'] and item['enable']:
if self.utils.is_binary_repo(repository): if self.utils.is_binary_repo(repository):
@ -87,7 +87,7 @@ class Check(Configs):
else: else:
self.count_rows += self.session.query(self.sbo_table[repository].id).count() self.count_rows += self.session.query(self.sbo_table[repository].id).count()
def count_of_repository(self): def count_of_repository(self) -> None:
if self.is_binary: if self.is_binary:
self.count_rows: int = self.session.query( self.count_rows: int = self.session.query(
BinariesTable.id).where(BinariesTable.repo == self.repository).count() BinariesTable.id).where(BinariesTable.repo == self.repository).count()