mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
RawConfigParser.__init__: fix overloads (#9613)
This commit is contained in:
@@ -67,7 +67,23 @@ class RawConfigParser(_Parser):
|
||||
self,
|
||||
defaults: Mapping[str, str | None] | None = None,
|
||||
dict_type: type[Mapping[str, str]] = ...,
|
||||
allow_no_value: Literal[True] = ...,
|
||||
*,
|
||||
allow_no_value: Literal[True],
|
||||
delimiters: Sequence[str] = ...,
|
||||
comment_prefixes: Sequence[str] = ...,
|
||||
inline_comment_prefixes: Sequence[str] | None = None,
|
||||
strict: bool = True,
|
||||
empty_lines_in_values: bool = True,
|
||||
default_section: str = "DEFAULT",
|
||||
interpolation: Interpolation | None = ...,
|
||||
converters: _ConvertersMap = ...,
|
||||
) -> None: ...
|
||||
@overload
|
||||
def __init__(
|
||||
self,
|
||||
defaults: Mapping[str, str | None] | None,
|
||||
dict_type: type[Mapping[str, str]],
|
||||
allow_no_value: Literal[True],
|
||||
*,
|
||||
delimiters: Sequence[str] = ...,
|
||||
comment_prefixes: Sequence[str] = ...,
|
||||
|
||||
Reference in New Issue
Block a user