ConfigParser should use IO[str] for IO functions (#1621)

This commit is contained in:
Amandine Lee
2017-09-22 06:25:17 -07:00
committed by Jelle Zijlstra
parent b4e89a078c
commit 248f74d31b

View File

@@ -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