MCPcopy Create free account
hub / github.com/FastLED/FastLED / print_cache_miss

Method print_cache_miss

ci/util/color_output.py:89–100  ·  view source on GitHub ↗

Print cache miss/invalidation message in yellow with warning formatting.

(self, message: str)

Source from the content-addressed store, hash-verified

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

Callers 1

print_cache_missFunction · 0.80

Calls 4

_fallback_printMethod · 0.95
get_elapsed_strFunction · 0.85
appendMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected