diff --git a/stdlib/2.7/ConfigParser.pyi b/stdlib/2.7/ConfigParser.pyi index 7b027ce4c..5fdf38020 100644 --- a/stdlib/2.7/ConfigParser.pyi +++ b/stdlib/2.7/ConfigParser.pyi @@ -1,4 +1,4 @@ -from typing import Any, Tuple +from typing import Any, Tuple, IO __all__ = ... # type: list[str] DEFAULTSECT = ... # type: str @@ -74,7 +74,7 @@ class RawConfigParser: def has_section(self, section: str) -> bool: ... def options(self, section: str) -> list[str]: ... def read(self, filenames: str) -> list[str]: ... - def readfp(self, fp: file, filename: str = ...) -> None: ... + def readfp(self, fp: IO[str], filename: str = ...) -> None: ... def get(self, section: str, option: str) -> str: ... def items(self, section: str) -> list[Tuple[Any,Any]]: ... def _get(self, section: str, conv: type, option: str) -> Any: ...