From 53e1a71c4bef8a773dccf8a47dc83bb765036230 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 14 May 2018 09:20:55 -0400 Subject: [PATCH] add ConfigParser.readfp in Python 3 https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.readfp Fixes #2112 --- stdlib/3/configparser.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/3/configparser.pyi b/stdlib/3/configparser.pyi index 684eea510890..440ad8cf4bfa 100644 --- a/stdlib/3/configparser.pyi +++ b/stdlib/3/configparser.pyi @@ -93,6 +93,8 @@ class RawConfigParser(_parser): def read(self, filenames: Union[_Path, Iterable[_Path]], encoding: Optional[str] = ...) -> List[str]: ... + def readfp(self, fp: IO[str], filename: Optional[str] = ...) -> None: ... + def read_file(self, f: Iterable[str], source: Optional[str] = ...) -> None: ... def read_string(self, string: str, source: str = ...) -> None: ...