Skip to content

Dedent task docstrings used as doc_md - #71108

Open
yuseok89 wants to merge 5 commits into
apache:mainfrom
yuseok89:fix/66477-dedent-task-docstrings
Open

Dedent task docstrings used as doc_md#71108
yuseok89 wants to merge 5 commits into
apache:mainfrom
yuseok89:fix/66477-dedent-task-docstrings

Conversation

@yuseok89

@yuseok89 yuseok89 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

closes: #66477

A @task function's docstring used as doc_md keeps the leading indentation from the nested function, so it renders as an indented code block instead of Markdown. This applies inspect.cleandoc to fix it.

Picks up the approved-then-stale #68500 with the review feedback applied.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
    • Opus 4.8

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@yuseok89
yuseok89 marked this pull request as ready for review August 6, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply dedent when docstring is passed as task doc

1 participant