Various stubtest fixes (#5215)

This commit is contained in:
hatal175
2021-04-15 05:14:07 +03:00
committed by GitHub
parent 3536e2a080
commit bf201c8201
8 changed files with 78 additions and 42 deletions

View File

@@ -53,7 +53,6 @@ class HelpFormatter:
short_first: Any
width: int
def __init__(self, indent_increment: int, max_help_position: int, width: Optional[int], short_first: int) -> None: ...
def _format__Text(self, _Text: _Text) -> _Text: ...
def dedent(self) -> None: ...
def expand_default(self, option: Option) -> _Text: ...
def format_description(self, description: _Text) -> _Text: ...
@@ -165,8 +164,8 @@ class Values:
def _update_careful(self, dict: Mapping[_Text, Any]) -> None: ...
def _update_loose(self, dict: Mapping[_Text, Any]) -> None: ...
def ensure_value(self, attr: _Text, value: Any) -> Any: ...
def read_file(self, filename: _Text, mode: _Text) -> None: ...
def read_module(self, modname: _Text, mode: _Text) -> None: ...
def read_file(self, filename: _Text, mode: _Text = ...) -> None: ...
def read_module(self, modname: _Text, mode: _Text = ...) -> None: ...
def __getattr__(self, name: str) -> Any: ...
def __setattr__(self, name: str, value: Any) -> None: ...
@@ -187,7 +186,7 @@ class OptionParser(OptionContainer):
def __init__(
self,
usage: Optional[_Text] = ...,
option_list: Iterable[Option] = ...,
option_list: Optional[Iterable[Option]] = ...,
option_class: Type[Option] = ...,
version: Optional[_Text] = ...,
conflict_handler: _Text = ...,