From 7958a7f934d798e85a7a8b2557939461125af726 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 30 Jan 2023 17:00:43 +0000 Subject: [PATCH] `RawConfigParser.__init__`: fix overloads (#9613) --- stdlib/configparser.pyi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/stdlib/configparser.pyi b/stdlib/configparser.pyi index 1ab7977fa..2c5b68385 100644 --- a/stdlib/configparser.pyi +++ b/stdlib/configparser.pyi @@ -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] = ...,