mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 03:11:16 +08:00
Change numerous default values to ... (#1722)
This is the convention, and some default values (e.g. strings) apparently break pytype.
This commit is contained in:
committed by
Matthias Kramm
parent
66821993f6
commit
54dd6ba27c
@@ -91,9 +91,9 @@ class RawConfigParser(_parser):
|
||||
def has_option(self, section: str, option: str) -> bool: ...
|
||||
|
||||
def read(self, filenames: Union[_Path, Iterable[_Path]],
|
||||
encoding: Optional[str] = None) -> List[str]: ...
|
||||
encoding: Optional[str] = ...) -> List[str]: ...
|
||||
|
||||
def read_file(self, f: Iterable[str], source: Optional[str] = None) -> None: ...
|
||||
def read_file(self, f: Iterable[str], source: Optional[str] = ...) -> None: ...
|
||||
|
||||
def read_string(self, string: str, source: str = ...) -> None: ...
|
||||
|
||||
@@ -124,7 +124,7 @@ class RawConfigParser(_parser):
|
||||
|
||||
def write(self,
|
||||
fileobject: IO[str],
|
||||
space_around_delimiters: bool = True) -> None: ...
|
||||
space_around_delimiters: bool = ...) -> None: ...
|
||||
|
||||
def remove_option(self, section: str, option: str) -> bool: ...
|
||||
|
||||
@@ -135,7 +135,7 @@ class RawConfigParser(_parser):
|
||||
|
||||
class ConfigParser(RawConfigParser):
|
||||
def __init__(self,
|
||||
defaults: Optional[_section] = None,
|
||||
defaults: Optional[_section] = ...,
|
||||
dict_type: Mapping[str, str] = ...,
|
||||
allow_no_value: bool = ...,
|
||||
delimiters: Sequence[str] = ...,
|
||||
@@ -144,7 +144,7 @@ class ConfigParser(RawConfigParser):
|
||||
strict: bool = ...,
|
||||
empty_lines_in_values: bool = ...,
|
||||
default_section: str = ...,
|
||||
interpolation: Optional[Interpolation] = None,
|
||||
interpolation: Optional[Interpolation] = ...,
|
||||
converters: _converters = ...) -> None: ...
|
||||
|
||||
class SafeConfigParser(ConfigParser): ...
|
||||
|
||||
Reference in New Issue
Block a user