mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add some type hints
This commit is contained in:
parent
b6ee649458
commit
0b7dbaf90d
10 changed files with 193 additions and 173 deletions
|
@ -82,7 +82,7 @@ class BlueprintApp:
|
|||
except:
|
||||
report_bug()
|
||||
|
||||
def add_subcommand(self, name, help, func):
|
||||
def add_subcommand(self, name: str, help: str, func):
|
||||
parser = self.subparsers.add_parser(name, help=help)
|
||||
parser.set_defaults(func=func)
|
||||
return parser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue