From 01d87c98bfbffb4bc3993fb9a553bc94659ffef4 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 8 May 2023 12:27:45 +0300 Subject: [PATCH] Updated for typing --- slpkg/sbos/slackbuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: