From 248f74d31b3da51cf6572dfb55de52e24d9a2df6 Mon Sep 17 00:00:00 2001 From: Amandine Lee Date: Fri, 22 Sep 2017 06:25:17 -0700 Subject: [PATCH] ConfigParser should use IO[str] for IO functions (#1621) --- stdlib/2/ConfigParser.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2/ConfigParser.pyi b/stdlib/2/ConfigParser.pyi index 5191e9976..b1cd51785 100644 --- a/stdlib/2/ConfigParser.pyi +++ b/stdlib/2/ConfigParser.pyi @@ -78,10 +78,10 @@ class RawConfigParser: def optionxform(self, optionstr: str) -> str: ... def has_option(self, section: str, option: str) -> bool: ... def set(self, section: str, option: str, value: Any = ...) -> None: ... - def write(self, fp: file) -> None: ... + def write(self, fp: IO[str]) -> None: ... def remove_option(self, section: str, option: Any) -> bool: ... def remove_section(self, section: str) -> bool: ... - def _read(self, fp: file, fpname: str) -> None: ... + def _read(self, fp: IO[str], fpname: str) -> None: ... class ConfigParser(RawConfigParser): _KEYCRE = ... # type: Any