MCPcopy
hub / github.com/pallets/click / isatty

Function isatty

src/click/_compat.py:576–580  ·  view source on GitHub ↗
(stream: t.IO[t.Any])

Source from the content-addressed store, hash-verified

574
575
576def isatty(stream: t.IO[t.Any]) -> bool:
577 try:
578 return stream.isatty()
579 except Exception:
580 return False
581
582
583def _make_cached_stream_func(

Callers 7

__init__Method · 0.85
_pager_contextmanagerFunction · 0.85
raw_terminalFunction · 0.85
getcharFunction · 0.85
should_strip_ansiFunction · 0.85
clearFunction · 0.85
pauseFunction · 0.85

Calls 1

isattyMethod · 0.45

Tested by

no test coverage detected