Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-37217: [Python] Add missing docstrings to Cython #37218

Merged
merged 19 commits into from
Aug 18, 2023

Conversation

danepitkin
Copy link
Member

@danepitkin danepitkin commented Aug 16, 2023

Rationale for this change

The Cython 3.0.0 upgrade #37097 is triggering numpydoc errors for these missing docstrings.

What changes are included in this PR?

  • Docstrings added to Cython functions that omitted them

Are these changes tested?

Yes, locally.

Are there any user-facing changes?

User-facing documentation is added.

@github-actions
Copy link

⚠️ GitHub issue #37217 has been automatically assigned in GitHub to PR creator.

@danepitkin
Copy link
Member Author

I took a quick pass at adding docstrings. There are a lot so I didn't make them all perfect, e.g. some descriptions weren't added for functions that are self-explanatory. Let me know what level of detail is acceptable to merge! I'm happy to improve them as requested.

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

I'm not familiar format for docstring but I think that this minimal contents are enough as the first step.

python/pyarrow/_parquet.pyx Outdated Show resolved Hide resolved
python/pyarrow/array.pxi Outdated Show resolved Hide resolved
python/pyarrow/gandiva.pyx Outdated Show resolved Hide resolved
python/pyarrow/gandiva.pyx Outdated Show resolved Hide resolved
python/pyarrow/gandiva.pyx Outdated Show resolved Hide resolved
python/pyarrow/tensor.pxi Outdated Show resolved Hide resolved
python/pyarrow/tensor.pxi Show resolved Hide resolved
python/pyarrow/types.pxi Outdated Show resolved Hide resolved
python/pyarrow/types.pxi Outdated Show resolved Hide resolved
python/pyarrow/types.pxi Outdated Show resolved Hide resolved
@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Aug 17, 2023
python/pyarrow/table.pxi Outdated Show resolved Hide resolved
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Aug 17, 2023
@danepitkin
Copy link
Member Author

Thank you for all of the helpful feedback! I missed a lot.. the perils of such a big change.

@danepitkin
Copy link
Member Author

All comments have been resolved. Thanks for the feedback!

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@kou kou merged commit ca1a0eb into apache:main Aug 18, 2023
@kou kou removed the awaiting change review Awaiting change review label Aug 18, 2023
@github-actions github-actions bot added the awaiting merge Awaiting merge label Aug 18, 2023
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit ca1a0eb.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them.

loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
### Rationale for this change

The Cython 3.0.0 upgrade apache#37097 is triggering numpydoc errors for these missing docstrings.

### What changes are included in this PR?

* Docstrings added to Cython functions that omitted them

### Are these changes tested?

Yes, locally.

### Are there any user-facing changes?

User-facing documentation is added.
* Closes: apache#37217

Lead-authored-by: Dane Pitkin <[email protected]>
Co-authored-by: Dane Pitkin <[email protected]>
Co-authored-by: Alenka Frim <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
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.

[Python] Add missing docstrings to Cython functions
3 participants