Updated for typing

This commit is contained in:
Dimitris Zlatanidis 2023-05-08 12:28:52 +03:00
parent 01d87c98bf
commit 70917b6a9d

View file

@ -84,7 +84,7 @@ class Packages(Configs):
self.packages_requires.extend(Required(self.data, pkg).resolve()) self.packages_requires.extend(Required(self.data, pkg).resolve())
# Clean dependencies from the dependencies list if already added with main packages. # 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: if requires:
self.packages_requires = self.choose_dependencies_for_install(requires) self.packages_requires = self.choose_dependencies_for_install(requires)
@ -94,7 +94,7 @@ class Packages(Configs):
if dep in self.packages: if dep in self.packages:
self.packages.remove(dep) 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: def crating_the_package_urls_list(self) -> None:
package_urls: list = [] package_urls: list = []
@ -122,7 +122,7 @@ class Packages(Configs):
down.download() down.download()
print() 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 """ Skip installed package when the option --skip-installed is applied
and continue to install if the package is upgradable or the --reinstall option and continue to install if the package is upgradable or the --reinstall option
applied. applied.