From afead7a879cf1ba19df6b0779b9634c51aae635a Mon Sep 17 00:00:00 2001 From: Advit Arora Date: Mon, 24 Aug 2026 02:31:42 +0530 Subject: [PATCH] [configparser] Narrow `RawConfigParser.popitem()` to `SectionProxy` --- stdlib/configparser.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/configparser.pyi b/stdlib/configparser.pyi index 095df4368660..cc27c9d20ea7 100644 --- a/stdlib/configparser.pyi +++ b/stdlib/configparser.pyi @@ -334,6 +334,7 @@ class RawConfigParser(_Parser): def items(self, section: _SectionName, raw: bool = False, vars: _Section | None = None) -> list[tuple[str, str]]: ... def values(self) -> ValuesView[SectionProxy]: ... + def popitem(self) -> tuple[str, SectionProxy]: ... def set(self, section: _SectionName, option: str, value: str | None = None) -> None: ... def write(self, fp: SupportsWrite[str], space_around_delimiters: bool = True) -> None: ... def remove_option(self, section: _SectionName, option: str) -> bool: ...