Made the readfp method take in a BinaryIO type (#346)

* Made the readfp method take in a BinaryIO type

* moving from BinaryIO to IO[str]
This commit is contained in:
Daniel
2016-07-14 04:36:22 -07:00
committed by Jukka Lehtosalo
parent 534837e1ee
commit 932737d322

View File

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