(
colorize: bool = False, *, file: IO[str] | IO[bytes] | None = None
)
| 429 | |
| 430 | |
| 431 | def get_colors( |
| 432 | colorize: bool = False, *, file: IO[str] | IO[bytes] | None = None |
| 433 | ) -> ANSIColors: |
| 434 | if colorize or can_colorize(file=file): |
| 435 | return ANSIColors() |
| 436 | else: |
| 437 | return NoColors |
| 438 | |
| 439 | |
| 440 | def decolor(text: str) -> str: |
no test coverage detected
searching dependent graphs…