mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
feat: update types to support multiple progressbars
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user