Stop using functools.lru_cache decorator on instance methods

This commit is contained in:
Darren Burns 2022-01-13 16:44:26 +00:00
parent 5f0219786b
commit 5aa0242763
5 changed files with 198 additions and 184 deletions

View file

@ -1,5 +1,5 @@
from rich.console import Console
from rich.progress_bar import ProgressBar
from rich.progress_bar import ProgressBar, _get_pulse_segments
from rich.segment import Segment
from rich.style import Style
@ -63,7 +63,7 @@ def test_pulse():
def test_get_pulse_segments():
bar = ProgressBar()
segments = bar._get_pulse_segments(
segments = _get_pulse_segments(
Style.parse("red"), Style.parse("yellow"), None, False, False
)
print(repr(segments))