mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 12:44:33 +08:00
_WrappedBuffer protocol isatty() returns bool (#12438)
Fixed new _WrappedBuffer protocol methid `isatty()` correctly returns `bool`
This commit is contained in:
1 parent
a21c4bc4f1
commit
5ade7d97c8
1 file changed
+1
-1
+1
-1
@@ -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: ...
|
||||
|
||||
Reference in new issue
Block a user