diff --git a/airflow/decorators/base.py b/airflow/decorators/base.py index 9b303e1a703e7..b095f2e29bbff 100644 --- a/airflow/decorators/base.py +++ b/airflow/decorators/base.py @@ -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(