Print cache miss/invalidation message in yellow with warning formatting.
(self, message: str)
| 87 | self._fallback_print(f"{elapsed} {message}", "✓ ") |
| 88 | |
| 89 | def print_cache_miss(self, message: str) -> None: |
| 90 | """Print cache miss/invalidation message in yellow with warning formatting.""" |
| 91 | elapsed = get_elapsed_str() |
| 92 | if self.console and self._Text is not None: |
| 93 | # Use yellow with a warning symbol for cache misses/invalidations |
| 94 | text = self._Text() |
| 95 | text.append(f"{elapsed} ", style="yellow") |
| 96 | text.append("⚠️ ", style="yellow bold") |
| 97 | text.append(message, style="yellow") |
| 98 | self.console.print(text) |
| 99 | else: |
| 100 | self._fallback_print(f"{elapsed} {message}", "⚠️ ") |
| 101 | |
| 102 | |
| 103 | # Lazy global instance: deferred until first use to avoid paying the ~100ms |
no test coverage detected