8000 typing: accept buffers in typing.IO.write by JelleZijlstra · Pull Request #9084 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

typing: accept buffers in typing.IO.write #9084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
try the other way
  • Loading branch information
JelleZijlstra committed Mar 10, 2023
commit 37bb27ef7a438ff4b9bf3fa813119a3d31f2a55c
4 changes: 2 additions & 2 deletions stdlib/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -688,13 +688,13 @@ class IO(Iterator[AnyStr], Generic[AnyStr]):
def writable(self) -> bool: ...
@abstractmethod
@overload
def write(self, __s: AnyStr) -> int: ...
def write(self: IO[str], __s: str) -> int: ...
@abstractmethod
@overload
def write(self: IO[bytes], __s: ReadableBuffer) -> int: ...
@abstractmethod
@overload
def writelines(self, __lines: Iterable[AnyStr]) -> None: ...
def writelines(self: IO[str], __lines: Iterable[str]) -> None: ...
@abstractmethod
@overload
def writelines(self: IO[bytes], __lines: Iterable[ReadableBuffer]) -> None: ...
Expand Down
0