Updated for typing

This commit is contained in:
Dimitris Zlatanidis 2023-05-08 12:27:45 +03:00
parent e15c0b34bb
commit 01d87c98bf

View file

@ -33,7 +33,7 @@ class Slackbuilds(Configs):
def __init__(self, repository: str, data: dict, slackbuilds: list, flags: list, mode: str):
super(Configs, self).__init__()
self.repository: str = repository
self.data = data
self.data: dict = data
self.slackbuilds: list = slackbuilds
self.flags: list = flags
self.mode: str = mode
@ -111,7 +111,7 @@ class Slackbuilds(Configs):
def remove_duplicate_slackbuilds_from_dependencies(self):
if self.dependencies:
# Remove duplicate packages and keeps the order.
dependencies = list(OrderedDict.fromkeys(self.dependencies))
dependencies: list = list(OrderedDict.fromkeys(self.dependencies))
self.dependencies: list = self.choose_dependencies_for_build_or_install(dependencies)
def add_dependencies_slackbuilds_to_install_list(self) -> None: