mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Add missing '-> None' to all __init__ methods.
This commit is contained in:
@@ -14,13 +14,13 @@ REMAINDER = ... # type: Any
|
||||
class _AttributeHolder: ...
|
||||
|
||||
class HelpFormatter:
|
||||
def __init__(self, prog, indent_increment=2, max_help_position=24, width=None): ...
|
||||
def __init__(self, prog, indent_increment=2, max_help_position=24, width=None) -> None: ...
|
||||
class _Section:
|
||||
formatter = ... # type: Any
|
||||
parent = ... # type: Any
|
||||
heading = ... # type: Any
|
||||
items = ... # type: Any
|
||||
def __init__(self, formatter, parent, heading=None): ...
|
||||
def __init__(self, formatter, parent, heading=None) -> None: ...
|
||||
def format_help(self): ...
|
||||
def start_section(self, heading): ...
|
||||
def end_section(self): ...
|
||||
@@ -37,7 +37,7 @@ class ArgumentDefaultsHelpFormatter(HelpFormatter): ...
|
||||
class ArgumentError(Exception):
|
||||
argument_name = ... # type: Any
|
||||
message = ... # type: Any
|
||||
def __init__(self, argument, message): ...
|
||||
def __init__(self, argument, message) -> None: ...
|
||||
|
||||
class ArgumentTypeError(Exception): ...
|
||||
|
||||
@@ -67,10 +67,10 @@ class _StoreConstAction(Action):
|
||||
def __call__(self, parser, namespace, values, option_string=None): ...
|
||||
|
||||
class _StoreTrueAction(_StoreConstAction):
|
||||
def __init__(self, option_strings, dest, default=False, required=False, help=None): ...
|
||||
def __init__(self, option_strings, dest, default=False, required=False, help=None) -> None: ...
|
||||
|
||||
class _StoreFalseAction(_StoreConstAction):
|
||||
def __init__(self, option_strings, dest, default=True, required=False, help=None): ...
|
||||
def __init__(self, option_strings, dest, default=True, required=False, help=None) -> None: ...
|
||||
|
||||
class _AppendAction(Action):
|
||||
def __init__(self, option_strings, dest, nargs=None, const=None, default=None, type=None,
|
||||
@@ -83,31 +83,31 @@ class _AppendConstAction(Action):
|
||||
def __call__(self, parser, namespace, values, option_string=None): ...
|
||||
|
||||
class _CountAction(Action):
|
||||
def __init__(self, option_strings, dest, default=None, required=False, help=None): ...
|
||||
def __init__(self, option_strings, dest, default=None, required=False, help=None) -> None: ...
|
||||
def __call__(self, parser, namespace, values, option_string=None): ...
|
||||
|
||||
class _HelpAction(Action):
|
||||
def __init__(self, option_strings, dest=..., default=..., help=None): ...
|
||||
def __init__(self, option_strings, dest=..., default=..., help=None) -> None: ...
|
||||
def __call__(self, parser, namespace, values, option_string=None): ...
|
||||
|
||||
class _VersionAction(Action):
|
||||
version = ... # type: Any
|
||||
def __init__(self, option_strings, version=None, dest=..., default=..., help=''): ...
|
||||
def __init__(self, option_strings, version=None, dest=..., default=..., help='') -> None: ...
|
||||
def __call__(self, parser, namespace, values, option_string=None): ...
|
||||
|
||||
class _SubParsersAction(Action):
|
||||
class _ChoicesPseudoAction(Action):
|
||||
def __init__(self, name, help): ...
|
||||
def __init__(self, option_strings, prog, parser_class, dest=..., help=None, metavar=None): ...
|
||||
def __init__(self, name, help) -> None: ...
|
||||
def __init__(self, option_strings, prog, parser_class, dest=..., help=None, metavar=None) -> None: ...
|
||||
def add_parser(self, name, **kwargs): ...
|
||||
def __call__(self, parser, namespace, values, option_string=None): ...
|
||||
|
||||
class FileType:
|
||||
def __init__(self, mode='', bufsize=-1): ...
|
||||
def __init__(self, mode='', bufsize=-1) -> None: ...
|
||||
def __call__(self, string): ...
|
||||
|
||||
class Namespace(_AttributeHolder):
|
||||
def __init__(self, **kwargs): ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
__hash__ = ... # type: Any
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
@@ -118,7 +118,7 @@ class _ActionsContainer:
|
||||
argument_default = ... # type: Any
|
||||
prefix_chars = ... # type: Any
|
||||
conflict_handler = ... # type: Any
|
||||
def __init__(self, description, prefix_chars, argument_default, conflict_handler): ...
|
||||
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): ...
|
||||
@@ -140,11 +140,11 @@ class _ActionsContainer:
|
||||
|
||||
class _ArgumentGroup(_ActionsContainer):
|
||||
title = ... # type: Any
|
||||
def __init__(self, container, title=None, description=None, **kwargs): ...
|
||||
def __init__(self, container, title=None, description=None, **kwargs) -> None: ...
|
||||
|
||||
class _MutuallyExclusiveGroup(_ArgumentGroup):
|
||||
required = ... # type: Any
|
||||
def __init__(self, container, required=False): ...
|
||||
def __init__(self, container, required=False) -> None: ...
|
||||
|
||||
class ArgumentParser(_AttributeHolder, _ActionsContainer):
|
||||
prog = ... # type: Any
|
||||
|
||||
Reference in New Issue
Block a user