mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-15 12:43:56 +00:00
15 lines
463 B
Python
15 lines
463 B
Python
from typing import Union
|
|
|
|
from rich.console import ConsoleRenderable, Group, RichCast
|
|
from rich.progress import Progress
|
|
|
|
|
|
class CustomProgress(Progress):
|
|
def __init__(self, *args, cust_objs, **kwargs) -> None:
|
|
self._cust_objs = cust_objs
|
|
super().__init__(*args, **kwargs)
|
|
|
|
def get_renderable(self) -> Union[ConsoleRenderable, RichCast, str]:
|
|
renderable = Group(*self._cust_objs, *self.get_renderables())
|
|
return renderable
|