mypy: update untyped defs

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2022-11-19 09:35:56 +09:00
parent 81eebde168
commit c1627a9686
3 changed files with 23 additions and 23 deletions

View File

@@ -29,7 +29,7 @@ class AqtException(Exception):
self.should_show_help: bool = should_show_help or False
super(AqtException, self).__init__(*args, **kwargs)
def __format__(self, format_spec) -> str:
def __format__(self, format_spec: str) -> str:
base_msg = "{}".format(super(AqtException, self).__format__(format_spec))
if not self.suggested_action:
return base_msg
@@ -40,7 +40,7 @@ class AqtException(Exception):
["* " + suggestion for suggestion in self.suggested_action]
)
def append_suggested_follow_up(self, suggestions: List[str]):
def append_suggested_follow_up(self, suggestions: List[str]) -> None:
self.suggested_action.extend(suggestions)