# Stubs for argparse (Python 2) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from typing import Any, Sequence, Union SUPPRESS = ... # type: Any OPTIONAL = ... # type: Any ZERO_OR_MORE = ... # type: Any ONE_OR_MORE = ... # type: Any PARSER = ... # type: Any REMAINDER = ... # type: Any class _AttributeHolder: ... class HelpFormatter: def __init__(self, prog, indent_increment=..., max_help_position=..., width=...) -> None: ... class _Section: formatter = ... # type: Any parent = ... # type: Any heading = ... # type: Any items = ... # type: Any def __init__(self, formatter, parent, heading=...) -> None: ... def format_help(self): ... def start_section(self, heading): ... def end_section(self): ... def add_text(self, text): ... def add_usage(self, usage, actions, groups, prefix=...): ... def add_argument(self, action): ... def add_arguments(self, actions): ... def format_help(self): ... class RawDescriptionHelpFormatter(HelpFormatter): ... class RawTextHelpFormatter(RawDescriptionHelpFormatter): ... class ArgumentDefaultsHelpFormatter(HelpFormatter): ... class ArgumentError(Exception): argument_name = ... # type: Any message = ... # type: Any def __init__(self, argument, message) -> None: ... class ArgumentTypeError(Exception): ... class Action(_AttributeHolder): option_strings = ... # type: Any dest = ... # type: Any nargs = ... # type: Any const = ... # type: Any default = ... # type: Any type = ... # type: Any choices = ... # type: Any required = ... # type: Any help = ... # type: Any metavar = ... # type: Any def __init__(self, option_strings, dest, nargs=..., const=..., default=..., type=..., choices=..., required=..., help=..., metavar=...): ... def __call__(self, parser, namespace, values, option_string=...): ... class _StoreAction(Action): def __init__(self, option_strings, dest, nargs=..., const=..., default=..., type=..., choices=..., required=..., help=..., metavar=...): ... def __call__(self, parser, namespace, values, option_string=...): ... class _StoreConstAction(Action): def __init__(self, option_strings, dest, const, default=..., required=..., help=..., metavar=...): ... def __call__(self, parser, namespace, values, option_string=...): ... class _StoreTrueAction(_StoreConstAction): def __init__(self, option_strings, dest, default=..., required=..., help=...) -> None: ... class _StoreFalseAction(_StoreConstAction): def __init__(self, option_strings, dest, default=..., required=..., help=...) -> None: ... class _AppendAction(Action): def __init__(self, option_strings, dest, nargs=..., const=..., default=..., type=..., choices=..., required=..., help=..., metavar=...): ... def __call__(self, parser, namespace, values, option_string=...): ... class _AppendConstAction(Action): def __init__(self, option_strings, dest, const, default=..., required=..., help=..., metavar=...): ... def __call__(self, parser, namespace, values, option_string=...): ... class _CountAction(Action): def __init__(self, option_strings, dest, default=..., required=..., help=...) -> None: ... def __call__(self, parser, namespace, values, option_string=...): ... class _HelpAction(Action): def __init__(self, option_strings, dest=..., default=..., help=...) -> None: ... def __call__(self, parser, namespace, values, option_string=...): ... class _VersionAction(Action): version = ... # type: Any def __init__(self, option_strings, version=..., dest=..., default=..., help=...) -> None: ... def __call__(self, parser, namespace, values, option_string=...): ... class _SubParsersAction(Action): class _ChoicesPseudoAction(Action): def __init__(self, name, help) -> None: ... def __init__(self, option_strings, prog, parser_class, dest=..., help=..., metavar=...) -> None: ... def add_parser(self, name, **kwargs): ... def __call__(self, parser, namespace, values, option_string=...): ... class FileType: def __init__(self, mode=..., bufsize=...) -> None: ... def __call__(self, string): ... class Namespace(_AttributeHolder): def __init__(self, **kwargs) -> None: ... __hash__ = ... # type: Any def __eq__(self, other): ... def __ne__(self, other): ... def __contains__(self, key): ... def __getattr__(self, name: str) -> Any: ... class _ActionsContainer: description = ... # type: Any argument_default = ... # type: Any prefix_chars = ... # type: Any conflict_handler = ... # type: Any def __init__(self, description, prefix_chars, argument_default, conflict_handler) -> None: ... def register(self, registry_name, value, object): ... def set_defaults(self, **kwargs): ... def get_default(self, dest): ... def add_argument(self, *args: str, action: Union[str, Action] = ..., nargs: str = ..., const: Any = ..., default: Any = ..., type: Any = ..., choices: Any = ..., # TODO: Container? required: bool = ..., help: str = ..., metavar: str = ..., dest: str = ..., version: str = ..., ) -> None: ... def add_argument_group(self, *args, **kwargs): ... def add_mutually_exclusive_group(self, **kwargs): ... class _ArgumentGroup(_ActionsContainer): title = ... # type: Any def __init__(self, container, title=..., description=..., **kwargs) -> None: ... class _MutuallyExclusiveGroup(_ArgumentGroup): required = ... # type: Any def __init__(self, container, required=...) -> None: ... class ArgumentParser(_AttributeHolder, _ActionsContainer): prog = ... # type: Any usage = ... # type: Any epilog = ... # type: Any version = ... # type: Any formatter_class = ... # type: Any fromfile_prefix_chars = ... # type: Any add_help = ... # type: Any def __init__(self, prog=..., usage=..., description=..., epilog=..., version=..., parents=..., formatter_class=..., prefix_chars=..., fromfile_prefix_chars=..., argument_default=..., conflict_handler=..., add_help=...): ... def add_subparsers(self, **kwargs): ... def parse_args(self, args: Sequence[str] = ..., namespace=...): ... def parse_known_args(self, args=..., namespace=...): ... def convert_arg_line_to_args(self, arg_line): ... def format_usage(self): ... def format_help(self): ... def format_version(self): ... def print_usage(self, file=...): ... def print_help(self, file=...): ... def print_version(self, file=...): ... def exit(self, status=..., message=...): ... def error(self, message): ...