Fix RawConfigParser.read stub for Python 2. (#808)

Bring it in line with the stub used in the Python 3 version.
This commit is contained in:
lionel-github
2017-01-02 15:36:03 -08:00
committed by Guido van Rossum
parent 94641f5a84
commit f775ef3bc5

View File

@@ -1,4 +1,4 @@
from typing import Any, Tuple, IO
from typing import Any, IO, Sequence, Tuple, Union
__all__ = ... # type: list[str]
DEFAULTSECT = ... # type: str
@@ -66,7 +66,7 @@ class RawConfigParser:
def add_section(self, section: str) -> None: ...
def has_section(self, section: str) -> bool: ...
def options(self, section: str) -> list[str]: ...
def read(self, filenames: str) -> list[str]: ...
def read(self, filenames: Union[str, Sequence[str]]) -> list[str]: ...
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]]: ...