8000 Add a typevar with a default to `io.TextIOWrapper` by sobolevn · Pull Request #12286 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Add a typevar with a default to io.TextIOWrapper #12286

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

Merged
merged 5 commits into from
Jul 10, 2024
Merged
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
Next Next commit
Fix CI
  • Loading branch information
sobolevn committed Jul 6, 2024
commit c3e4b434724fa88fc7acc84ec0f790a3563a4d7d
4 changes: 2 additions & 2 deletions stdlib/io.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class TextIOWrapper(TextIOBase, TextIO, Generic[_BufferT]): # type: ignore[misc
) -> None: ...
# Equals the "buffer" argument passed in to the constructor.
@property
def buffer(self) -> _BufferT: ...
def buffer(self) -> _BufferT: ... # type: ignore[override]
@property
def closed(self) -> bool: ...
@property
Expand All @@ -211,7 +211,7 @@ class TextIOWrapper(TextIOBase, TextIO, Generic[_BufferT]): # type: ignore[misc
def readline(self, size: int = -1, /) -> str: ... # type: ignore[override]
def readlines(self, hint: int = -1, /) -> list[str]: ... # type: ignore[override]
# Equals the "buffer" argument passed in to the constructor.
def detach(self) -> _BufferT: ...
def detach(self) -> _BufferT: ... # type: ignore[override]
# TextIOWrapper's version of seek only supports a limited subset of
# operations.
def seek(self, cookie: int, whence: int = 0, /) -> int: ...
Expand Down
Loading
0