mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
Stop using functools.lru_cache decorator on instance methods
This commit is contained in:
parent
5f0219786b
commit
5aa0242763
5 changed files with 198 additions and 184 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue