Skip to content

Clean up task decorator type hints and docstrings#24667

Merged
uranusjr merged 2 commits into
apache:mainfrom
astronomer:decorator-typing-cleanup
Jun 28, 2022
Merged

Clean up task decorator type hints and docstrings#24667
uranusjr merged 2 commits into
apache:mainfrom
astronomer:decorator-typing-cleanup

Conversation

@uranusjr
Copy link
Copy Markdown
Member

All those 'T' type vars are no longer needed since we've unified the
typing long ago (all these functions now use the 'Function' type var).

Also slightly fixed up task.branch to match the styles of other
task decorators.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 newsfragement file, named {pr_number}.significant.rst, in newsfragments.

Comment thread airflow/decorators/__init__.pyi Outdated
@github-actions github-actions Bot added the full tests needed We need to run full set of tests for this PR to merge label Jun 28, 2022
@github-actions
Copy link
Copy Markdown
Contributor

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

All those 'T' type vars are no longer needed since we've unified the
typing long ago (all these functions now use the 'Function' type var).

Also slightly fixed up task.branch to match the styles of other
task decorators.
@uranusjr uranusjr force-pushed the decorator-typing-cleanup branch from 29f95c7 to 9773c04 Compare June 28, 2022 04:20
@uranusjr uranusjr force-pushed the decorator-typing-cleanup branch from 9773c04 to be92a39 Compare June 28, 2022 05:25
@uranusjr uranusjr merged commit 40f0890 into apache:main Jun 28, 2022
@uranusjr uranusjr deleted the decorator-typing-cleanup branch June 28, 2022 06:45
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers full tests needed We need to run full set of tests for this PR to merge type:misc/internal Changelog: Misc changes that should appear in change log

3 participants