Fixed for typing

This commit is contained in:
Dimitris Zlatanidis 2023-05-09 20:38:46 +03:00
parent e353a60196
commit 8dd3b365b2

View file

@ -16,7 +16,7 @@ class Upgrade(Configs):
def __init__(self, repository: str, data: dict):
super(Configs, self).__init__()
self.repository = repository
self.repository: str = repository
self.data: dict = data
self.utils = Utilities()
@ -53,13 +53,11 @@ class Upgrade(Configs):
repo_version: str = self.data[name][0]
repo_package: str = self.data[name][1]
repo_build: str = self.utils.split_binary_pkg(repo_package)[3]
else:
repo_version: str = self.data[name][2]
repo_location: str = self.data[name][0]
repo_build: str = self.utils.read_slackbuild_build_tag(
name, repo_location, self.repository
)
name, repo_location, self.repository)
repo_pkg: str = f'{name}-{repo_version}'
inst_pkg: str = f'{name}-{inst_version}'