MCPcopy
hub / github.com/pytest-dev/pytest / strip_colors

Method strip_colors

testing/conftest.py:215–217  ·  view source on GitHub ↗

Entirely remove every color code

(cls, lines: list[str])

Source from the content-addressed store, hash-verified

213
214 @classmethod
215 def strip_colors(cls, lines: list[str]) -> list[str]:
216 """Entirely remove every color code"""
217 return [line.format(**cls.NO_COLORS) for line in lines]
218
219 return ColorMapping
220

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected