diff --git a/slpkg/sbos/slackbuild.py b/slpkg/sbos/slackbuild.py index ff88eda8..8c120897 100644 --- a/slpkg/sbos/slackbuild.py +++ b/slpkg/sbos/slackbuild.py @@ -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: