Code
Hub
Workspaces
Connect your AI tool
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pallets/click
/ strip_ansi
Function
strip_ansi
src/click/_compat.py:488–489 · src/click/_compat.py::strip_ansi
(value: str)
Source
from the content-addressed store, hash-verified
486
487
488
def
strip_ansi(value: str) -> str:
489
return
_ansi_re.sub(
class
="st">"", value)
490
491
492
def
_is_jupyter_kernel_output(stream: t.IO[t.Any]) -> bool:
Callers
7
test_wrap_text_visible_width
Function · 0.90
test_write_usage_styled_prefix_keeps_options_on_one_line
Function · 0.90
test_help_formatter_write_usage_without_args_styled_prefix
Function · 0.90
write
Method · 0.85
echo
Function · 0.85
term_len
Function · 0.85
unstyle
Function · 0.85
Calls
no outgoing calls
Tested by
3
test_wrap_text_visible_width
Function · 0.72
test_write_usage_styled_prefix_keeps_options_on_one_line
Function · 0.72
test_help_formatter_write_usage_without_args_styled_prefix
Function · 0.72