Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python/mypy
/ remove_color_code
Function
remove_color_code
mypy/test/teststubtest.py:2968–2969 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
2966
2967
2968
def
remove_color_code(s: str) -> str:
2969
return
re.sub(
"\\x1b.*?m"
,
""
, s)
# this works!
2970
2971
2972
class
StubtestMiscUnit(unittest.TestCase):
Callers
6
run_stubtest_with_stderr
Function · 0.85
test_reexport_reports_import_location
Method · 0.85
test_missing_stubs
Method · 0.85
test_only_py
Method · 0.85
test_no_modules
Method · 0.85
test_module_and_typeshed
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…