mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 05:22:23 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user