Fix CodeQL error

This commit is contained in:
Mike Auty
2024-07-31 21:49:07 +01:00
parent 73bc10c283
commit d576f8cb48
+2 -1
View File
@@ -99,6 +99,7 @@ class HelpfulArgParser(argparse.ArgumentParser):
# return the number of arguments matched
return len(match.group(1))
def _check_value(self, action, value):
def _check_value(self, action: argparse.Action, value: Any) -> None:
if not isinstance(action, HelpfulSubparserAction):
return super()._check_value(action, value)
return None