argparse: add Action.format_usage (#4114)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-27 18:36:01 -07:00
committed by GitHub
parent 54c99ff75f
commit 02e1a68a56

View File

@@ -280,6 +280,8 @@ class Action(_AttributeHolder):
def __call__(self, parser: ArgumentParser, namespace: Namespace,
values: Union[Text, Sequence[Any], None],
option_string: Optional[Text] = ...) -> None: ...
if sys.version_info >= (3, 9):
def format_usage(self) -> str: ...
class Namespace(_AttributeHolder):
def __init__(self, **kwargs: Any) -> None: ...