There was a small bug in this PR earlier this year to create a protocol for TextIOBuffer _WrappedBuffer
#11420
See here:
|
def isatty(self) -> int: ... |
isatty should return bool.
Notice isatty on IOBase is a bool:
|
def isatty(self) -> bool: ... |
And literally every other occurrence of isatty in every other type stub is a bool too.
Looks like the mistake came from this comment because that comment incorrectly lists isatty as int too.
There was a small bug in this PR earlier this year to create a protocol for
TextIOBuffer_WrappedBuffer#11420
See here:
typeshed/stdlib/io.pyi
Line 171 in a21c4bc
isattyshould returnbool.Notice
isattyonIOBaseis a bool:typeshed/stdlib/io.pyi
Line 63 in a21c4bc
And literally every other occurrence of
isattyin every other type stub is abooltoo.Looks like the mistake came from this comment because that comment incorrectly lists
isattyasinttoo.