Added typing

This commit is contained in:
Dimitris Zlatanidis 2023-01-16 21:41:57 +02:00
parent 6961c578ed
commit cda2792e44

View file

@ -87,7 +87,7 @@ class Argparse:
raise SystemExit("\nError: You should enable the dialog "
"in the '/etc/slpkg/' folder.\n")
def check_for_flags(self, command):
def check_for_flags(self, command: str):
""" Check for correct flags. """
commands = {
@ -164,7 +164,7 @@ class Argparse:
if opt not in flags and opt not in ['--help', '--version']:
self.usage.error_for_options(flags)
def choose_packages(self, packages, method):
def choose_packages(self, packages: list, method: str):
""" Choose packages with dialog utility and --search flag. """
height = 10
width = 70