mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
Updated for typing
This commit is contained in:
parent
01d87c98bf
commit
70917b6a9d
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue