Skip to content

Commit 7851fc3

Browse files
committed
typing fix
1 parent d5ff409 commit 7851fc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/api/v1/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ async def get_task(task_id: str) -> dict[str, Any] | None:
5555
job_info = await job.info()
5656
if job_info is None:
5757
return None
58-
return job_info.__dict__ if hasattr(job_info, '__dict__') else dict(job_info) if job_info else None
58+
59+
return job_info.__dict__

0 commit comments

Comments
 (0)