feat: update types to support multiple progressbars
This commit is contained in:
@@ -50,6 +50,7 @@ class BackgroundTaskStatus(BaseModel):
|
|||||||
status: str
|
status: str
|
||||||
running: bool
|
running: bool
|
||||||
progress: float | None = None
|
progress: float | None = None
|
||||||
|
progress_tasks: dict[str, Any] | None = None
|
||||||
error: str | None = None
|
error: str | None = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from typing import Any, Literal, TypedDict
|
from typing import Any, Literal, NotRequired, TypedDict
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
from freqtrade.exchange.exchange import Exchange
|
from freqtrade.exchange.exchange import Exchange
|
||||||
@@ -9,6 +9,7 @@ class JobsContainer(TypedDict):
|
|||||||
is_running: bool
|
is_running: bool
|
||||||
status: str
|
status: str
|
||||||
progress: float | None
|
progress: float | None
|
||||||
|
progress_tasks: NotRequired[dict[str, Any]]
|
||||||
result: Any
|
result: Any
|
||||||
error: str | None
|
error: str | None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user