mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
add ConfigParser.readfp in Python 3 (#2123)
https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.readfp Fixes #2112
This commit is contained in:
committed by
Guido van Rossum
parent
53fde2ddf7
commit
7abcd0f71f
@@ -93,6 +93,8 @@ 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: ...
|
||||
|
||||
Reference in New Issue
Block a user