Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Dec 24, 2024

This was missed in the refactor: #19965 -- since the task_decorator_factory enforces keyword-only parameters for via the * in its signature.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

This was missed in the refactor: apache#19965 -- since the `task_decorator_factory` enforces keyword-only parameters for via the `*` in its signature.
@kaxil kaxil requested review from amoghrajesh and ashb December 24, 2024 11:41
@kaxil kaxil added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Dec 24, 2024
Comment on lines -687 to -688
elif python_callable is not None:
raise TypeError("No args allowed while using @task, use kwargs instead")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aah looks like this was for falsy value like {}

@kaxil kaxil closed this Dec 25, 2024
@kaxil kaxil deleted the remove-redundant-check branch December 31, 2025 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants