From b286a59514e7443b51aa7e9b4d63993b6e11af91 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Wed, 27 Nov 2024 19:55:22 -0800 Subject: [PATCH] add configparser.RawConfigParser.converters (#13146) --- stdlib/@tests/stubtest_allowlists/common.txt | 1 - stdlib/configparser.pyi | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 68d9e0ed4..81b590c54 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -72,7 +72,6 @@ bz2.BZ2File.peek codecs.StreamReader.charbuffertype codecs.StreamReader.seek codecs.StreamWriter.seek -configparser.RawConfigParser.converters ctypes.ARRAY ctypes.SetPointerType ctypes.c_voidp diff --git a/stdlib/configparser.pyi b/stdlib/configparser.pyi index a665631d1..a44dc2e1c 100644 --- a/stdlib/configparser.pyi +++ b/stdlib/configparser.pyi @@ -277,6 +277,8 @@ class RawConfigParser(_Parser): def remove_option(self, section: str, option: str) -> bool: ... def remove_section(self, section: str) -> bool: ... def optionxform(self, optionstr: str) -> str: ... + @property + def converters(self) -> ConverterMapping: ... class ConfigParser(RawConfigParser): # This is incompatible with MutableMapping so we ignore the type