mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Various stubtest fixes (#5215)
This commit is contained in:
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user