Skip to content

Commit 5ade7d9

Browse files
authored
_WrappedBuffer protocol isatty() returns bool (#12438)
Fixed new _WrappedBuffer protocol methid `isatty()` correctly returns `bool`
1 parent a21c4bc commit 5ade7d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/io.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class _WrappedBuffer(Protocol):
168168
def writable(self) -> bool: ...
169169
def truncate(self, size: int, /) -> int: ...
170170
def fileno(self) -> int: ...
171-
def isatty(self) -> int: ...
171+
def isatty(self) -> bool: ...
172172
# Optional: Only needs to be present if seekable() returns True.
173173
# def seek(self, offset: Literal[0], whence: Literal[2]) -> int: ...
174174
# def tell(self) -> int: ...

0 commit comments

Comments
 (0)