Fix RawConfigParser.readfp() annotation (#2443)

Closes #689
This commit is contained in:
Sebastian Rittau
2018-09-11 17:22:36 +02:00
committed by Jelle Zijlstra
parent 6afa610191
commit 44bdf6c6c7
2 changed files with 5 additions and 7 deletions

View File

@@ -92,15 +92,11 @@ 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: ...
def read_dict(self, dictionary: Mapping[str, Mapping[str, Any]],
source: str = ...) -> None: ...
def readfp(self, fp: Iterable[str], filename: Optional[str] = ...) -> None: ...
# These get* methods are partially applied (with the same names) in
# SectionProxy; the stubs should be kept updated together