mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
io: loosen writelines type to iterable (#4642)
This came up in https://github.com/python/mypy/pull/9275 Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -128,7 +128,7 @@ class TextIOBase(IOBase):
|
||||
def __next__(self) -> str: ... # type: ignore
|
||||
def detach(self) -> BinaryIO: ...
|
||||
def write(self, __s: str) -> int: ...
|
||||
def writelines(self, __lines: List[str]) -> None: ... # type: ignore
|
||||
def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore
|
||||
def readline(self, __size: int = ...) -> str: ... # type: ignore
|
||||
def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore
|
||||
def read(self, __size: Optional[int] = ...) -> str: ...
|
||||
@@ -166,7 +166,7 @@ class TextIOWrapper(TextIOBase, TextIO):
|
||||
def __enter__(self: _T) -> _T: ...
|
||||
def __iter__(self) -> Iterator[str]: ... # type: ignore
|
||||
def __next__(self) -> str: ... # type: ignore
|
||||
def writelines(self, __lines: List[str]) -> None: ... # type: ignore
|
||||
def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore
|
||||
def readline(self, __size: int = ...) -> str: ... # type: ignore
|
||||
def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore
|
||||
def seek(self, __cookie: int, __whence: int = ...) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user