mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Added typing
This commit is contained in:
parent
6961c578ed
commit
cda2792e44
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue