(color: str, msg: str, bold: bool, **kwargs: Any)
| 54 | |
| 55 | |
| 56 | def print_color(color: str, msg: str, bold: bool, **kwargs: Any) -> None: |
| 57 | if hasattr(sys.stdout, "isatty") and sys.stdout.isatty(): |
| 58 | bold_code = col.BOLD if bold else "" |
| 59 | print(bold_code + color + msg + col.RESET, **kwargs) |
| 60 | else: |
| 61 | print(msg, **kwargs) |
| 62 | |
| 63 | |
| 64 | warnings: list[str] = [] |
no test coverage detected
searching dependent graphs…