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)
| 707 | |
| 708 | |
| 709 | def 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 | |
| 721 | def secho( |
nothing calls this directly
no test coverage detected