From b195038142bfe151ebba1907c82ff19b5fb9cc0c Mon Sep 17 00:00:00 2001 From: trillian Date: Mon, 22 Sep 2025 12:48:04 +0300 Subject: [PATCH] configparser: allow ConfigParser()[UNNAMED_SECTION] (#14759) --- stdlib/configparser.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/configparser.pyi b/stdlib/configparser.pyi index 764a8a965..1909d80e3 100644 --- a/stdlib/configparser.pyi +++ b/stdlib/configparser.pyi @@ -258,9 +258,9 @@ class RawConfigParser(_Parser): ) -> None: ... def __len__(self) -> int: ... - def __getitem__(self, key: str) -> SectionProxy: ... - def __setitem__(self, key: str, value: _Section) -> None: ... - def __delitem__(self, key: str) -> None: ... + def __getitem__(self, key: _SectionName) -> SectionProxy: ... + def __setitem__(self, key: _SectionName, value: _Section) -> None: ... + def __delitem__(self, key: _SectionName) -> None: ... def __iter__(self) -> Iterator[str]: ... def __contains__(self, key: object) -> bool: ... def defaults(self) -> _Section: ...