File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
- from __future__ import annotations
2
-
3
1
from typing import Any , Dict , Optional
4
2
5
3
from camel_converter .pydantic_base import CamelBase
@@ -17,18 +15,18 @@ class Task(CamelBase):
17
15
finished_at : str
18
16
19
17
class TaskInfo (CamelBase ):
20
- task_uid : str | None
18
+ task_uid : Optional [ str ]
21
19
index_uid : str
22
20
status : str
23
21
type : str
24
22
details : Optional [Dict [str , Any ]]
25
- duration : str | None
23
+ duration : Optional [ str ]
26
24
enqueued_at : str
27
- started_at : str | None
28
- finished_at : str | None
25
+ started_at : Optional [ str ]
26
+ finished_at : Optional [ str ]
29
27
30
28
class TaskResults :
31
- def __init__ (self , resp : dict [str , Any ]) -> None :
29
+ def __init__ (self , resp : Dict [str , Any ]) -> None :
32
30
self .results : list [Task ] = [Task (** task ) for task in resp ['results' ]]
33
31
self .limit : int = resp ['limit' ]
34
32
self .from_ : int = resp ['from' ]
You can’t perform that action at this time.
0 commit comments