mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
argparse: add Action.format_usage (#4114)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user