Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-04-09 12:46:49 +03:00
parent d0fbab31c2
commit 952e61866c

View file

@ -30,12 +30,11 @@ class Upgrade(Configs):
encoding='utf-8',
level=logging.INFO)
def packages(self) -> Generator[str, None, None]:
def packages(self) -> Generator:
""" Returns the upgradable packages. """
repo_packages_names: list = list(self.data.keys())
# Returns the matched packages between two lists.
packages: list = list(set(self.utils.installed_package_names) & set(repo_packages_names))
packages: list = list(set(self.utils.installed_package_names) & set(list(self.data.keys())))
for pkg in packages: