8000 Remove redundant overloads from `IO` (#12570) · python/typeshed@7f38b11 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f38b11

Browse files
authored
Remove redundant overloads from IO (#12570)
1 parent 86e7416 commit 7f38b11

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

stdlib/typing.pyi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -800,18 +800,12 @@ class IO(Iterator[AnyStr]):
800800
def writable(self) -> bool: ...
801801
@abstractmethod
802802
@overload
803-
def write(self: IO[str], s: str, /) -> int: ...
804-
@abstractmethod
805-
@overload
806803
def write(self: IO[bytes], s: ReadableBuffer, /) -> int: ...
807804
@abstractmethod
808805
@overload
809806
def write(self, s: AnyStr, /) -> int: ...
810807
@abstractmethod
811808
@overload
812-
def writelines(self: IO[str], lines: Iterable[str], /) -> None: ...
813-
@abstractmethod
814-
@overload
815809
def writelines(self: IO[bytes], lines: Iterable[ReadableBuffer], /) -> None: ...
816810
@abstractmethod
817811
@overload

0 commit comments

Comments
 (0)
0