Skip to content

Commit

Permalink
cache
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jul 14, 2024
1 parent b301af6 commit 9c3498b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textual/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9c3498b

Please sign in to comment.