From 9c3498b2844dab8d5878924d7e093073663377a3 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 14 Jul 2024 19:12:49 +0100 Subject: [PATCH] cache --- src/textual/color.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/textual/color.py b/src/textual/color.py index e10a63f561..35dadb0e67 100644 --- a/src/textual/color.py +++ b/src/textual/color.py @@ -223,6 +223,7 @@ def clamped(self) -> Color: return color @property + @lru_cache(1024) def rich_color(self) -> RichColor: """This color encoded in Rich's Color class.