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,7 +14,7 @@ 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: ...
|
||||
def start_section(self, heading): ...
|
||||
def end_section(self): ...
|
||||
def add_text(self, text): ...
|
||||
@@ -31,7 +31,7 @@ class MetavarTypeHelpFormatter(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): ...
|
||||
|
||||
@@ -61,10 +61,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,
|
||||
@@ -77,11 +77,11 @@ 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):
|
||||
@@ -97,11 +97,11 @@ class _SubParsersAction(Action):
|
||||
def __call__(self, parser, namespace, values, option_string=None): ...
|
||||
|
||||
class FileType:
|
||||
def __init__(self, mode='', bufsize=-1, encoding=None, errors=None): ...
|
||||
def __init__(self, mode='', bufsize=-1, encoding=None, errors=None) -> None: ...
|
||||
def __call__(self, string): ...
|
||||
|
||||
class Namespace(_AttributeHolder):
|
||||
def __init__(self, **kwargs): ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __contains__(self, key): ...
|
||||
@@ -111,7 +111,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): ...
|
||||
@@ -133,11 +133,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