Updated for typing

This commit is contained in:
Dimitris Zlatanidis 2023-03-13 00:55:30 +02:00
parent 79da1b37ac
commit 2f0b136954

View file

@ -166,7 +166,7 @@ class Slackbuilds(Configs):
sources_urls += SBoQueries(sbo).sources()
urls = sources_urls
urls: list = sources_urls
# Combine sbos and sources.
if not self.ponce_repo:
urls.extend(sbos_urls)
@ -181,7 +181,7 @@ class Slackbuilds(Configs):
self.move_sources(sources_urls)
self.checksum_downloads()
def extract_sbos(self):
def extract_sbos(self) -> None:
""" Untar all the sbo.tar.gz files. """
if not self.ponce_repo:
for sbo in self.install_order:
@ -189,14 +189,14 @@ class Slackbuilds(Configs):
self.utils.untar_archive(self.build_path, file)
self.patch_sbo_tag(sbo)
def move_sources(self, sources_urls):
def move_sources(self, sources_urls: list) -> None:
""" Move the sources into the folders for build. """
for sbo, src in zip(self.install_order, sources_urls):
source = Path(self.build_path, src.split('/')[-1])
path = Path(self.build_path, sbo)
shutil.move(source, path)
def checksum_downloads(self):
def checksum_downloads(self) -> None:
""" Checking the correct checksums. """
for sbo in self.install_order: