Skip to content

Commit

Permalink
Remove redundant overloads from IO (#12570)
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau authored Aug 21, 2024
1 parent 86e7416 commit 7f38b11
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions stdlib/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f38b11

Please sign in to comment.