From 7f38b116a0fd2b17ec71db145639135b65d1d896 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Wed, 21 Aug 2024 15:55:22 +0200 Subject: [PATCH] Remove redundant overloads from `IO` (#12570) --- stdlib/typing.pyi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index f6fb00e4b..14d0b45f2 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -800,18 +800,12 @@ class IO(Iterator[AnyStr]): def writable(self) -> bool: ... @abstractmethod @overload - def write(self: IO[str], s: str, /) -> int: ... - @abstractmethod - @overload def write(self: IO[bytes], s: ReadableBuffer, /) -> int: ... @abstractmethod @overload def write(self, s: AnyStr, /) -> int: ... @abstractmethod @overload - def writelines(self: IO[str], lines: Iterable[str], /) -> None: ... - @abstractmethod - @overload def writelines(self: IO[bytes], lines: Iterable[ReadableBuffer], /) -> None: ... @abstractmethod @overload