RawConfigParser.__init__: fix overloads (#9613)

This commit is contained in:
Alex Waygood
2023-01-30 17:00:43 +00:00
committed by GitHub
parent b5a26d1ca2
commit 7958a7f934

View File

@@ -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] = ...,