Fixed for mypy errors

This commit is contained in:
Dimitris Zlatanidis 2024-04-22 22:02:17 +03:00
parent 9ce69f29d0
commit a0f7259241

View file

@ -1,6 +1,8 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# mypy: disable-error-code="no-redef"
from typing import Generator
from slpkg.configs import Configs
from slpkg.utilities import Utilities
@ -50,8 +52,8 @@ class Dependees(Configs):
yield name, data['requires']
def view_the_title(self) -> None:
print(f"The list below shows the packages that dependees on:\n")
self.packages: tuple = tuple(self.utils.apply_package_pattern(self.data, self.packages))
print('The list below shows the packages that dependees on:\n')
self.packages: list = self.utils.apply_package_pattern(self.data, self.packages)
def view_no_dependees(self, dependees: dict) -> None:
if not dependees: