From 5ade7d97c859d85f6a1d11f4c6a8e2c3f60776d2 Mon Sep 17 00:00:00 2001 From: Ashley Sommer Date: Sat, 27 Jul 2024 16:32:54 +1000 Subject: [PATCH] _WrappedBuffer protocol isatty() returns bool (#12438) Fixed new _WrappedBuffer protocol methid `isatty()` correctly returns `bool` --- stdlib/io.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/io.pyi b/stdlib/io.pyi index a386a914d..2d64d2619 100644 --- a/stdlib/io.pyi +++ b/stdlib/io.pyi @@ -168,7 +168,7 @@ class _WrappedBuffer(Protocol): def writable(self) -> bool: ... def truncate(self, size: int, /) -> int: ... def fileno(self) -> int: ... - def isatty(self) -> int: ... + def isatty(self) -> bool: ... # Optional: Only needs to be present if seekable() returns True. # def seek(self, offset: Literal[0], whence: Literal[2]) -> int: ... # def tell(self) -> int: ...