Skip to content

Commit

Permalink
Remove explicit type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar-foss committed Nov 8, 2024
1 parent f0f1850 commit c78d799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/api_fastapi/core_api/routes/public/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_task(dag_id: str, task_id, request: Request) -> TaskResponse:
if not dag:
raise HTTPException(status.HTTP_404_NOT_FOUND, f"Dag with id {dag_id} was not found")
try:
task: Operator = dag.get_task(task_id=task_id)
task = dag.get_task(task_id=task_id)
task.class_ref = get_class_ref(task)
task.is_mapped = isinstance(task, MappedOperator)
except TaskNotFound:
Expand Down

0 comments on commit c78d799

Please sign in to comment.