mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
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:
committed by
Guido van Rossum
parent
94641f5a84
commit
f775ef3bc5
@@ -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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user