Skip to content

Commit

Permalink
Fix typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
koval committed Jan 9, 2024
1 parent 296efe1 commit 7a0ffa6
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions huntflow_api_client/models/response/delayed_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ class TaskLog(BaseModel):
comment: t.Optional[str] = Field(None, description="Comment text")


class MultivacancyAddChildTaskResult(BaseModel):
child_vacancy_id: int


class MultivacancyUpsertTaskResult(BaseModel):
parent_vacancy_id: int
children_vacancies_ids: t.List[int]


class DelayedTaskResponse(BaseModel):
task_id: UUID = Field(..., description="Task ID")
state: TaskState = Field(..., description="Current task status")
Expand All @@ -47,7 +38,4 @@ class DelayedTaskResponse(BaseModel):
description="Date and time of the last task update (ISO 8601)",
)
states_log: t.List[TaskLog] = Field(..., description="Task change log")
result: t.Union[MultivacancyAddChildTaskResult, MultivacancyUpsertTaskResult, t.Any] = Field(
...,
description="Task execution result",
)
result: t.Optional[t.Dict] = Field(None, description="Task execution result")

0 comments on commit 7a0ffa6

Please sign in to comment.