From 7abcd0f71f70647f7a98019c0e6b2138d78d16ca Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 11 Jun 2018 14:10:52 -0700 Subject: [PATCH] add ConfigParser.readfp in Python 3 (#2123) 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 684eea510..440ad8cf4 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: ...