Add some type hints

This commit is contained in:
James Westman 2022-12-25 18:32:23 -06:00
parent b6ee649458
commit 0b7dbaf90d
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
10 changed files with 193 additions and 173 deletions

View file

@ -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