8000 Use a Protocol as the argument for io.TextIOWrapper by JelleZijlstra · Pull Request #10229 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Use a Protocol as the argument for io.TextIOWrapper #10229

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 11 commits into from
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
  • Loading branch information
pre-commit-ci[bot] committed Jun 6, 2023
commit 51f089b77a2fd03a66ba896a58497abb4ffdeb7f
2 changes: 1 addition & 1 deletion stdlib/io.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class TextIOWrapper(TextIOBase, TextIO): # type: ignore[misc] # incompatible d
def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore[override]
def readline(self, __size: int = -1) -> str: ... # type: ignore[override]
def readlines(self, __hint: int = -1) -> list[str]: ... # type: ignore[override]
def detach(self) -> BufferedIOBase: ... # type: ignore[override]
def detach(self) -> BufferedIOBase: ... # type: ignore[override]
def seek(self, __cookie: int, __whence: int = 0) -> int: ... # stubtest needs this

class StringIO(TextIOWrapper):
Expand Down
0