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

Function _is_jupyter_kernel_output

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

Source from the content-addressed store, hash-verified

490
491
492def _is_jupyter_kernel_output(stream: t.IO[t.Any]) -> bool:
493 while isinstance(stream, (_FixupStream, _NonClosingTextIOWrapper)):
494 stream = stream._stream
495
496 return stream.__class__.__module__.startswith("ipykernel.")
497
498
499def should_strip_ansi(

Callers 1

should_strip_ansiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected