MCPcopy Index your code
hub / github.com/RustPython/RustPython / isatty

Method isatty

Lib/_pyio.py:1824–1827  ·  view source on GitHub ↗

True if the file is connected to a TTY device.

(self)

Source from the content-addressed store, hash-verified

1822 return self._fd
1823
1824 def isatty(self):
1825 """True if the file is connected to a TTY device."""
1826 self._checkClosed()
1827 return os.isatty(self._fd)
1828
1829 def _isatty_open_only(self):
1830 """Checks whether the file is a TTY using an open-only optimization.

Callers 2

testErrorsMethod · 0.95
testAblesMethod · 0.95

Calls 2

_checkClosedMethod · 0.45
isattyMethod · 0.45

Tested by 2

testErrorsMethod · 0.76
testAblesMethod · 0.76