From 70917b6a9d3c02ce1c10b314f4b3d324afce5c4c Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 8 May 2023 12:28:52 +0300 Subject: [PATCH] Updated for typing --- slpkg/binaries/install.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slpkg/binaries/install.py b/slpkg/binaries/install.py index 6b0ef63f..35b6ce1f 100644 --- a/slpkg/binaries/install.py +++ b/slpkg/binaries/install.py @@ -84,7 +84,7 @@ class Packages(Configs): self.packages_requires.extend(Required(self.data, pkg).resolve()) # Clean dependencies from the dependencies list if already added with main packages. - requires = list(OrderedDict.fromkeys(self.packages_requires)) + requires: list = list(OrderedDict.fromkeys(self.packages_requires)) if requires: self.packages_requires = self.choose_dependencies_for_install(requires) @@ -94,7 +94,7 @@ class Packages(Configs): if dep in self.packages: self.packages.remove(dep) - self.install_order = [*self.packages_requires, *self.packages] + self.install_order: list = [*self.packages_requires, *self.packages] def crating_the_package_urls_list(self) -> None: package_urls: list = [] @@ -122,7 +122,7 @@ class Packages(Configs): down.download() print() - def continue_to_install(self, name) -> bool: + def continue_to_install(self, name: str) -> bool: """ Skip installed package when the option --skip-installed is applied and continue to install if the package is upgradable or the --reinstall option applied.