-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
stubs: false positiveType checkers report false errorsType checkers report false errorstopic: ioI/O related issuesI/O related issues
Description
There was a small bug in this PR earlier this year to create a protocol for TextIOBuffer
_WrappedBuffer
#11420
See here:
Line 171 in a21c4bc
def isatty(self) -> int: ... |
isatty
should return bool
.
Notice isatty
on IOBase
is a bool:
Line 63 in a21c4bc
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.
Metadata
Metadata
Assignees
Labels
stubs: false positiveType checkers report false errorsType checkers report false errorstopic: ioI/O related issuesI/O related issues