Skip to content

[Python] Use docstring-adder to add runtime docstrings to type stubs #55596

Open

Description

@rok

Replace python/scripts/update_stub_docstrings.py (libcst codemod) with docstring-adder for inserting runtime docstrings into the type stubs at wheel-build time.

  • Small wrapper: stage an importable pyarrow, run docstring-adder, then ruff format.
  • Build Cython with embedsignature.format=clinic so __doc__ carries no signature line.
  • Drop libcst from the build requirements; docstring-adder (git-only) goes in requirements-wheel-build.txt.
  • docstring-adder skips name = _clone_signature(other) assignments in compute.pyi; needs an upstream change or a small post-pass.

Activity

  1. self-assigned this
    on Nov 13, 2026
  2. added 4 commits that reference this issue on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions