Skip to content

Commit

Permalink
Remove redundant check for positional arguments
Browse files Browse the repository at this point in the history
This was missed in the refactor: #19965 -- since the `task_decorator_factory` enforces keyword-only parameters for via the `*` in its signature.
  • Loading branch information
kaxil committed Dec 24, 2024
1 parent 56a75c4 commit 5bfc34b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions airflow/decorators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,6 @@ def task_decorator_factory(
kwargs=kwargs,
)
return cast(TaskDecorator, decorator)
elif python_callable is not None:
raise TypeError("No args allowed while using @task, use kwargs instead")

def decorator_factory(python_callable):
return _TaskDecorator(
Expand Down

0 comments on commit 5bfc34b

Please sign in to comment.