feat: update types to support multiple progressbars

This commit is contained in:
Matthias
2024-11-17 11:31:31 +01:00
parent 3eb7f296aa
commit 91b83519f5
2 changed files with 3 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ class BackgroundTaskStatus(BaseModel):
status: str
running: bool
progress: float | None = None
progress_tasks: dict[str, Any] | None = None
error: str | None = None

View File

@@ -1,4 +1,4 @@
from typing import Any, Literal, TypedDict
from typing import Any, Literal, NotRequired, TypedDict
from uuid import uuid4
from freqtrade.exchange.exchange import Exchange
@@ -9,6 +9,7 @@ class JobsContainer(TypedDict):
is_running: bool
status: str
progress: float | None
progress_tasks: NotRequired[dict[str, Any]]
result: Any
error: str | None