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

Function unstyle

src/click/termui.py:709–718  ·  view source on GitHub ↗

Removes ANSI styling information from a string. Usually it's not necessary to use this function as Click's echo function will automatically remove styling if necessary. .. versionadded:: 2.0 :param text: the text to remove style information from.

(text: str)

Source from the content-addressed store, hash-verified

707
708
709def unstyle(text: str) -> str:
710 """Removes ANSI styling information from a string. Usually it's not
711 necessary to use this function as Click's echo function will
712 automatically remove styling if necessary.
713
714 .. versionadded:: 2.0
715
716 :param text: the text to remove style information from.
717 """
718 return strip_ansi(text)
719
720
721def secho(

Callers

nothing calls this directly

Calls 1

strip_ansiFunction · 0.85

Tested by

no test coverage detected