Remove duplicate definitions in sub-classes (#8594)

This commit is contained in:
Nikita Sobolev
2022-08-26 18:10:55 +03:00
committed by GitHub
parent d91e5f0eff
commit 0259068ad6
36 changed files with 25 additions and 235 deletions

View File

@@ -117,7 +117,6 @@ class BufferedReader(BufferedIOBase, BinaryIO):
def __enter__(self: Self) -> Self: ...
def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...
def peek(self, __size: int = ...) -> bytes: ...
def read1(self, __size: int = ...) -> bytes: ...
class BufferedWriter(BufferedIOBase, BinaryIO):
def __enter__(self: Self) -> Self: ...
@@ -126,9 +125,7 @@ class BufferedWriter(BufferedIOBase, BinaryIO):
class BufferedRandom(BufferedReader, BufferedWriter):
def __enter__(self: Self) -> Self: ...
def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...
def seek(self, __target: int, __whence: int = ...) -> int: ...
def read1(self, __size: int = ...) -> bytes: ...
def seek(self, __target: int, __whence: int = ...) -> int: ... # stubtest needs this
class BufferedRWPair(BufferedIOBase):
def __init__(self, reader: RawIOBase, writer: RawIOBase, buffer_size: int = ...) -> None: ...
@@ -146,7 +143,6 @@ class TextIOBase(IOBase):
def readline(self, __size: int = ...) -> str: ... # type: ignore[override]
def readlines(self, __hint: int = ...) -> list[str]: ... # type: ignore[override]
def read(self, __size: int | None = ...) -> str: ...
def tell(self) -> int: ...
class TextIOWrapper(TextIOBase, TextIO):
def __init__(
@@ -182,7 +178,7 @@ class TextIOWrapper(TextIOBase, TextIO):
def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore[override]
def readline(self, __size: int = ...) -> str: ... # type: ignore[override]
def readlines(self, __hint: int = ...) -> list[str]: ... # type: ignore[override]
def seek(self, __cookie: int, __whence: int = ...) -> int: ...
def seek(self, __cookie: int, __whence: int = ...) -> int: ... # stubtest needs this
class StringIO(TextIOWrapper):
def __init__(self, initial_value: str | None = ..., newline: str | None = ...) -> None: ...