mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-15 14:31:59 +08:00
Change more defaults to ... (#1727)
This commit is contained in:
committed by
Matthias Kramm
parent
fd25e534ad
commit
324f1761f4
2
third_party/2/dateutil/parser.pyi
vendored
2
third_party/2/dateutil/parser.pyi
vendored
@@ -30,7 +30,7 @@ class parser(object):
|
||||
def __init__(self, info: Optional[parserinfo] = ...) -> None: ...
|
||||
def parse(self, timestr: Union[str, unicode, IO[unicode]],
|
||||
default: Optional[datetime] = ...,
|
||||
ignoretz: bool = ..., tzinfos: Optional[Dict[Union[str, unicode], tzinfo]] = None,
|
||||
ignoretz: bool = ..., tzinfos: Optional[Dict[Union[str, unicode], tzinfo]] = ...,
|
||||
**kwargs: Any) -> datetime: ...
|
||||
|
||||
DEFAULTPARSER = ... # type: parser
|
||||
|
||||
6
third_party/2/werkzeug/wrappers.pyi
vendored
6
third_party/2/werkzeug/wrappers.pyi
vendored
@@ -77,14 +77,14 @@ class BaseResponse:
|
||||
direct_passthrough = ... # type: bool
|
||||
response = ... # type: Iterable[str]
|
||||
def __init__(self,
|
||||
response: Optional[Union[Iterable[str], str]] = None,
|
||||
status: Optional[Union[basestring, int]] = None,
|
||||
response: Optional[Union[Iterable[str], str]] = ...,
|
||||
status: Optional[Union[basestring, int]] = ...,
|
||||
headers: Optional[Union[Headers,
|
||||
Mapping[basestring, basestring],
|
||||
Sequence[Tuple[basestring, basestring]]]] = None,
|
||||
mimetype: Optional[basestring] = ...,
|
||||
content_type: Optional[basestring] = ...,
|
||||
direct_passthrough: Optional[bool] = False) -> None: ...
|
||||
direct_passthrough: Optional[bool] = ...) -> None: ...
|
||||
def call_on_close(self, func): ...
|
||||
@classmethod
|
||||
def force_type(cls, response, environ=None): ...
|
||||
|
||||
2
third_party/2and3/boto/s3/__init__.pyi
vendored
2
third_party/2and3/boto/s3/__init__.pyi
vendored
@@ -8,7 +8,7 @@ from boto.regioninfo import RegionInfo
|
||||
from typing import List, Type, Text
|
||||
|
||||
class S3RegionInfo(RegionInfo):
|
||||
def connect(self, name: Optional[Text] = ..., endpoint: Optional[str] = ..., connection_cls: Optional[Type[AWSAuthConnection]] = None, **kw_params) -> S3Connection: ...
|
||||
def connect(self, name: Optional[Text] = ..., endpoint: Optional[str] = ..., connection_cls: Optional[Type[AWSAuthConnection]] = ..., **kw_params) -> S3Connection: ...
|
||||
|
||||
def regions() -> List[S3RegionInfo]: ...
|
||||
def connect_to_region(region_name: Text, **kw_params): ...
|
||||
|
||||
@@ -17,7 +17,7 @@ def attributes(
|
||||
apply_with_init: bool = ...,
|
||||
apply_with_repr: bool = ...,
|
||||
apply_immutable: bool = ...,
|
||||
store_attributes: Optional[Callable[[type, Attribute], Any]] = None,
|
||||
store_attributes: Optional[Callable[[type, Attribute], Any]] = ...,
|
||||
**kw: Optional[dict]) -> Callable[[Type[_T]], Type[_T]]: ...
|
||||
|
||||
class Attribute:
|
||||
@@ -29,6 +29,6 @@ class Attribute:
|
||||
exclude_from_repr: bool = ...,
|
||||
exclude_from_immutable: bool = ...,
|
||||
default_value: Any = NOTHING,
|
||||
default_factory: Optional[Callable[[None], Any]] = None,
|
||||
default_factory: Optional[Callable[[None], Any]] = ...,
|
||||
instance_of: Optional[Any] = ...,
|
||||
init_aliaser: Optional[Callable[[AnyStr], AnyStr]] = strip_leading_underscores) -> None: ...
|
||||
|
||||
30
third_party/2and3/click/core.pyi
vendored
30
third_party/2and3/click/core.pyi
vendored
@@ -77,15 +77,15 @@ class Context:
|
||||
info_name: Optional[str] = ...,
|
||||
obj: Optional[Any] = ...,
|
||||
auto_envvar_prefix: Optional[str] = ...,
|
||||
default_map: Optional[Mapping[str, Any]] = None,
|
||||
default_map: Optional[Mapping[str, Any]] = ...,
|
||||
terminal_width: Optional[int] = ...,
|
||||
max_content_width: Optional[int] = ...,
|
||||
resilient_parsing: bool = ...,
|
||||
allow_extra_args: Optional[bool] = ...,
|
||||
allow_interspersed_args: Optional[bool] = ...,
|
||||
ignore_unknown_options: Optional[bool] = ...,
|
||||
help_option_names: Optional[List[str]] = None,
|
||||
token_normalize_func: Optional[Callable[[str], str]] = None,
|
||||
help_option_names: Optional[List[str]] = ...,
|
||||
token_normalize_func: Optional[Callable[[str], str]] = ...,
|
||||
color: Optional[bool] = ...
|
||||
) -> None:
|
||||
...
|
||||
@@ -169,7 +169,7 @@ class BaseCommand:
|
||||
|
||||
def main(
|
||||
self,
|
||||
args: Optional[List[str]] = None,
|
||||
args: Optional[List[str]] = ...,
|
||||
prog_name: Optional[str] = ...,
|
||||
complete_var: Optional[str] = ...,
|
||||
standalone_mode: bool = ...,
|
||||
@@ -195,7 +195,7 @@ class Command(BaseCommand):
|
||||
name: str,
|
||||
context_settings: Optional[Dict] = ...,
|
||||
callback: Optional[Callable] = ...,
|
||||
params: Optional[List['Parameter']] = None,
|
||||
params: Optional[List['Parameter']] = ...,
|
||||
help: Optional[str] = ...,
|
||||
epilog: Optional[str] = ...,
|
||||
short_help: Optional[str] = ...,
|
||||
@@ -286,7 +286,7 @@ class Group(MultiCommand):
|
||||
commands: Dict[str, Command]
|
||||
|
||||
def __init__(
|
||||
self, name: Optional[str] = ..., commands: Optional[Dict[str, Command]] = None, **attrs
|
||||
self, name: Optional[str] = ..., commands: Optional[Dict[str, Command]] = ..., **attrs
|
||||
) -> None:
|
||||
...
|
||||
|
||||
@@ -304,7 +304,7 @@ class CommandCollection(MultiCommand):
|
||||
sources: List[MultiCommand]
|
||||
|
||||
def __init__(
|
||||
self, name: Optional[str] = ..., sources: Optional[List[MultiCommand]] = None, **attrs
|
||||
self, name: Optional[str] = ..., sources: Optional[List[MultiCommand]] = ..., **attrs
|
||||
) -> None:
|
||||
...
|
||||
|
||||
@@ -332,16 +332,16 @@ class Parameter:
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
param_decls: Optional[List[str]] = None,
|
||||
type: Optional[Union[type, 'ParamType']] = None,
|
||||
param_decls: Optional[List[str]] = ...,
|
||||
type: Optional[Union[type, 'ParamType']] = ...,
|
||||
required: bool = ...,
|
||||
default: Optional[Any] = ...,
|
||||
callback: Optional[Callable[[Context, 'Parameter', str], Any]] = None,
|
||||
callback: Optional[Callable[[Context, 'Parameter', str], Any]] = ...,
|
||||
nargs: Optional[int] = ...,
|
||||
metavar: Optional[str] = ...,
|
||||
expose_value: bool = ...,
|
||||
is_eager: bool = ...,
|
||||
envvar: Optional[Union[str, List[str]]] = None
|
||||
envvar: Optional[Union[str, List[str]]] = ...
|
||||
) -> None:
|
||||
...
|
||||
|
||||
@@ -402,9 +402,9 @@ class Option(Parameter):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
param_decls: Optional[List[str]] = None,
|
||||
param_decls: Optional[List[str]] = ...,
|
||||
show_default: bool = ...,
|
||||
prompt: Union[bool, str] = False,
|
||||
prompt: Union[bool, str] = ...,
|
||||
confirmation_prompt: bool = ...,
|
||||
hide_input: bool = ...,
|
||||
is_flag: Optional[bool] = ...,
|
||||
@@ -412,7 +412,7 @@ class Option(Parameter):
|
||||
multiple: bool = ...,
|
||||
count: bool = ...,
|
||||
allow_from_autoenv: bool = ...,
|
||||
type: Optional[Union[type, 'ParamType']] = None,
|
||||
type: Optional[Union[type, 'ParamType']] = ...,
|
||||
help: Optional[str] = ...,
|
||||
**attrs
|
||||
) -> None:
|
||||
@@ -425,7 +425,7 @@ class Option(Parameter):
|
||||
class Argument(Parameter):
|
||||
def __init__(
|
||||
self,
|
||||
param_decls: Optional[List[str]] = None,
|
||||
param_decls: Optional[List[str]] = ...,
|
||||
required: Optional[bool] = ...,
|
||||
**attrs
|
||||
) -> None:
|
||||
|
||||
36
third_party/2and3/click/decorators.pyi
vendored
36
third_party/2and3/click/decorators.pyi
vendored
@@ -49,7 +49,7 @@ def group(
|
||||
name: Optional[str] = ...,
|
||||
cls: type = Group,
|
||||
# Group
|
||||
commands: Optional[Dict[str, Command]] = None,
|
||||
commands: Optional[Dict[str, Command]] = ...,
|
||||
# MultiCommand
|
||||
invoke_without_command: bool = ...,
|
||||
no_args_is_help: Optional[bool] = ...,
|
||||
@@ -74,14 +74,14 @@ def argument(
|
||||
# Argument
|
||||
required: Optional[bool] = ...,
|
||||
# Parameter
|
||||
type: Optional[Union[type, ParamType]] = None,
|
||||
type: Optional[Union[type, ParamType]] = ...,
|
||||
default: Optional[Any] = ...,
|
||||
callback: Optional[_Callback] = ...,
|
||||
nargs: Optional[int] = ...,
|
||||
metavar: Optional[str] = ...,
|
||||
expose_value: bool = ...,
|
||||
is_eager: bool = ...,
|
||||
envvar: Optional[Union[str, List[str]]] = None
|
||||
envvar: Optional[Union[str, List[str]]] = ...
|
||||
) -> _Decorator:
|
||||
...
|
||||
|
||||
@@ -91,7 +91,7 @@ def option(
|
||||
cls: type = Option,
|
||||
# Option
|
||||
show_default: bool = ...,
|
||||
prompt: Union[bool, Text] = False,
|
||||
prompt: Union[bool, Text] = ...,
|
||||
confirmation_prompt: bool = ...,
|
||||
hide_input: bool = ...,
|
||||
is_flag: Optional[bool] = ...,
|
||||
@@ -99,7 +99,7 @@ def option(
|
||||
multiple: bool = ...,
|
||||
count: bool = ...,
|
||||
allow_from_autoenv: bool = ...,
|
||||
type: Optional[Union[type, ParamType]] = None,
|
||||
type: Optional[Union[type, ParamType]] = ...,
|
||||
help: Optional[str] = ...,
|
||||
# Parameter
|
||||
default: Optional[Any] = ...,
|
||||
@@ -109,7 +109,7 @@ def option(
|
||||
metavar: Optional[str] = ...,
|
||||
expose_value: bool = ...,
|
||||
is_eager: bool = ...,
|
||||
envvar: Optional[Union[str, List[str]]] = None
|
||||
envvar: Optional[Union[str, List[str]]] = ...
|
||||
) -> _Decorator:
|
||||
...
|
||||
|
||||
@@ -128,7 +128,7 @@ def confirmation_option(
|
||||
multiple: bool = ...,
|
||||
count: bool = ...,
|
||||
allow_from_autoenv: bool = ...,
|
||||
type: Optional[Union[type, ParamType]] = None,
|
||||
type: Optional[Union[type, ParamType]] = ...,
|
||||
help: str = ...,
|
||||
# Parameter
|
||||
default: Optional[Any] = ...,
|
||||
@@ -137,7 +137,7 @@ def confirmation_option(
|
||||
metavar: Optional[str] = ...,
|
||||
expose_value: bool = ...,
|
||||
is_eager: bool = ...,
|
||||
envvar: Optional[Union[str, List[str]]] = None
|
||||
envvar: Optional[Union[str, List[str]]] = ...
|
||||
) -> _Decorator:
|
||||
...
|
||||
|
||||
@@ -148,7 +148,7 @@ def password_option(
|
||||
cls: type = Option,
|
||||
# Option
|
||||
show_default: bool = ...,
|
||||
prompt: Union[bool, Text] = True,
|
||||
prompt: Union[bool, Text] = ...,
|
||||
confirmation_prompt: bool = ...,
|
||||
hide_input: bool = ...,
|
||||
is_flag: Optional[bool] = ...,
|
||||
@@ -156,7 +156,7 @@ def password_option(
|
||||
multiple: bool = ...,
|
||||
count: bool = ...,
|
||||
allow_from_autoenv: bool = ...,
|
||||
type: Optional[Union[type, ParamType]] = None,
|
||||
type: Optional[Union[type, ParamType]] = ...,
|
||||
help: Optional[str] = ...,
|
||||
# Parameter
|
||||
default: Optional[Any] = ...,
|
||||
@@ -165,20 +165,20 @@ def password_option(
|
||||
metavar: Optional[str] = ...,
|
||||
expose_value: bool = ...,
|
||||
is_eager: bool = ...,
|
||||
envvar: Optional[Union[str, List[str]]] = None
|
||||
envvar: Optional[Union[str, List[str]]] = ...
|
||||
) -> _Decorator:
|
||||
...
|
||||
|
||||
|
||||
# Defaults copied from the decorator body.
|
||||
def version_option(
|
||||
version: Optional[Union[str, Version]] = None,
|
||||
version: Optional[Union[str, Version]] = ...,
|
||||
*param_decls: str,
|
||||
cls: type = Option,
|
||||
# Option
|
||||
prog_name: Optional[str] = ...,
|
||||
show_default: bool = ...,
|
||||
prompt: Union[bool, Text] = False,
|
||||
prompt: Union[bool, Text] = ...,
|
||||
confirmation_prompt: bool = ...,
|
||||
hide_input: bool = ...,
|
||||
is_flag: bool = ...,
|
||||
@@ -186,7 +186,7 @@ def version_option(
|
||||
multiple: bool = ...,
|
||||
count: bool = ...,
|
||||
allow_from_autoenv: bool = ...,
|
||||
type: Optional[Union[type, ParamType]] = None,
|
||||
type: Optional[Union[type, ParamType]] = ...,
|
||||
help: str = ...,
|
||||
# Parameter
|
||||
default: Optional[Any] = ...,
|
||||
@@ -195,7 +195,7 @@ def version_option(
|
||||
metavar: Optional[str] = ...,
|
||||
expose_value: bool = ...,
|
||||
is_eager: bool = ...,
|
||||
envvar: Optional[Union[str, List[str]]] = None
|
||||
envvar: Optional[Union[str, List[str]]] = ...
|
||||
) -> _Decorator:
|
||||
...
|
||||
|
||||
@@ -206,7 +206,7 @@ def help_option(
|
||||
cls: type = Option,
|
||||
# Option
|
||||
show_default: bool = ...,
|
||||
prompt: Union[bool, Text] = False,
|
||||
prompt: Union[bool, Text] = ...,
|
||||
confirmation_prompt: bool = ...,
|
||||
hide_input: bool = ...,
|
||||
is_flag: bool = ...,
|
||||
@@ -214,7 +214,7 @@ def help_option(
|
||||
multiple: bool = ...,
|
||||
count: bool = ...,
|
||||
allow_from_autoenv: bool = ...,
|
||||
type: Optional[Union[type, ParamType]] = None,
|
||||
type: Optional[Union[type, ParamType]] = ...,
|
||||
help: str = ...,
|
||||
# Parameter
|
||||
default: Optional[Any] = ...,
|
||||
@@ -223,6 +223,6 @@ def help_option(
|
||||
metavar: Optional[str] = ...,
|
||||
expose_value: bool = ...,
|
||||
is_eager: bool = ...,
|
||||
envvar: Optional[Union[str, List[str]]] = None
|
||||
envvar: Optional[Union[str, List[str]]] = ...
|
||||
) -> _Decorator:
|
||||
...
|
||||
|
||||
2
third_party/2and3/click/exceptions.pyi
vendored
2
third_party/2and3/click/exceptions.pyi
vendored
@@ -63,7 +63,7 @@ class NoSuchOption(UsageError):
|
||||
self,
|
||||
option_name: str,
|
||||
message: Optional[str] = ...,
|
||||
possibilities: Optional[List[str]] = None,
|
||||
possibilities: Optional[List[str]] = ...,
|
||||
ctx: Optional[Context] = ...
|
||||
) -> None:
|
||||
...
|
||||
|
||||
6
third_party/2and3/click/termui.pyi
vendored
6
third_party/2and3/click/termui.pyi
vendored
@@ -31,7 +31,7 @@ def prompt(
|
||||
hide_input: bool = ...,
|
||||
confirmation_prompt: bool = ...,
|
||||
type: Optional[Any] = ...,
|
||||
value_proc: Optional[Callable[[Optional[str]], Any]] = None,
|
||||
value_proc: Optional[Callable[[Optional[str]], Any]] = ...,
|
||||
prompt_suffix: str = ...,
|
||||
show_default: bool = ...,
|
||||
err: bool = ...,
|
||||
@@ -63,13 +63,13 @@ _T = TypeVar('_T')
|
||||
|
||||
@contextmanager
|
||||
def progressbar(
|
||||
iterable: Optional[Iterable[_T]] = None,
|
||||
iterable: Optional[Iterable[_T]] = ...,
|
||||
length: Optional[int] = ...,
|
||||
label: Optional[str] = ...,
|
||||
show_eta: bool = ...,
|
||||
show_percent: Optional[bool] = ...,
|
||||
show_pos: bool = ...,
|
||||
item_show_func: Optional[Callable[[_T], str]] = None,
|
||||
item_show_func: Optional[Callable[[_T], str]] = ...,
|
||||
fill_char: str = ...,
|
||||
empty_char: str = ...,
|
||||
bar_template: str = ...,
|
||||
|
||||
6
third_party/2and3/markupsafe/__init__.pyi
vendored
6
third_party/2and3/markupsafe/__init__.pyi
vendored
@@ -16,8 +16,8 @@ class Markup(text_type):
|
||||
def __rmul__(self, num: int) -> Markup: ...
|
||||
def __mod__(self, *args: Any) -> Markup: ...
|
||||
def join(self, seq: Iterable[text_type]): ...
|
||||
def split(self, sep: Optional[text_type] = ..., maxsplit: int = -1) -> List[text_type]: ...
|
||||
def rsplit(self, sep: Optional[text_type] = ..., maxsplit: int = -1) -> List[text_type]: ...
|
||||
def split(self, sep: Optional[text_type] = ..., maxsplit: int = ...) -> List[text_type]: ...
|
||||
def rsplit(self, sep: Optional[text_type] = ..., maxsplit: int = ...) -> List[text_type]: ...
|
||||
def splitlines(self, keepends: bool = ...) -> List[text_type]: ...
|
||||
def unescape(self) -> Text: ...
|
||||
def striptags(self) -> Text: ...
|
||||
@@ -34,7 +34,7 @@ class Markup(text_type):
|
||||
def lower(self) -> Markup: ...
|
||||
def upper(self) -> Markup: ...
|
||||
def swapcase(self) -> Markup: ...
|
||||
def replace(self, old: text_type, new: text_type, count: int = -1) -> Markup: ...
|
||||
def replace(self, old: text_type, new: text_type, count: int = ...) -> Markup: ...
|
||||
def ljust(self, width: int, fillchar: text_type = ...) -> Markup: ...
|
||||
def rjust(self, width: int, fillchar: text_type = ...) -> Markup: ...
|
||||
def lstrip(self, chars: Optional[text_type] = ...) -> Markup: ...
|
||||
|
||||
Reference in New Issue
Block a user