Skip to content

Conversation

@uranusjr
Copy link
Member

Some manual docstring improvements I gathered when reviewing #31297, submitted separately to not expand the PR scope.

uranusjr added 21 commits May 18, 2023 14:33
The param documentation is changed to use Sphinx-style.
Docstring is re-formatted. Also slightly tweaked the annotation and log
format but nothing functionally.
I don't think many people would actually need this docstring (DagRun
being so fundamental to Airflow at this point), but the new text should
be more useful in terms of describing how Airflow model things these
days.
The previous docstring mentions a trigger can have a relationship to
DAG, which doesn't seem to match reality, so I changed it.
Those seems to simply miss an empty line between the actual summary and
detailed description.

Code block formatting in BranchDayOfWeekOperator also needed some fixes.
Also use some typing to replace text form type descriptions.
They are useless. Also reformatted quite some docstrings en passe.
@uranusjr uranusjr requested a review from XD-DENG as a code owner May 18, 2023 06:47
@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:core-operators area:dev-tools provider:cncf-kubernetes Kubernetes (k8s) provider related issues area:logging area:providers area:serialization area:webserver Webserver related Issues provider:google Google (including GCP) related issues labels May 18, 2023
Copy link
Contributor

@dstandish dstandish left a comment

Choose a reason for hiding this comment

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

nice

@potiuk
Copy link
Member

potiuk commented May 18, 2023

Conflicts to resolve now :)

@uranusjr uranusjr merged commit 54f1fb0 into apache:main May 19, 2023
@uranusjr uranusjr deleted the docstring-improve branch May 19, 2023 04:55
@eladkal eladkal added the type:misc/internal Changelog: Misc changes that should appear in change log label Jun 8, 2023
@eladkal eladkal modified the milestones: Airflow 2.6.2, Airflow 2.7.0 Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:dev-tools area:logging area:providers area:serialization area:webserver Webserver related Issues provider:cncf-kubernetes Kubernetes (k8s) provider related issues provider:google Google (including GCP) related issues type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants