Skip to content

Conversation

@paddyroddy
Copy link

Rationale for this change

Currently, PyArrow is not typed and users have to use the stubs provided by https://github.com/zen-xu/pyarrow-stubs. This is not ideal and requires extra effort by zen-xu who has already expressed desire in donating his library (see zen-xu/pyarrow-stubs#186). Will fix apache#32609.

What changes are included in this PR?

This PR includes:

Are these changes tested?

They will be in a similar mechanism to the workflows NumPy has (.github/workflows/mypy.yml, .github/workflows/mypy_primer.yml, .github/workflows/mypy_primer_comment.yml).

Are there any user-facing changes?

The users will now have types!

zen-xu and others added 17 commits May 14, 2025 03:47
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.9 → v0.11.13](astral-sh/ruff-pre-commit@v0.11.9...v0.11.13)
- [github.com/RobertCraigie/pyright-python: v1.1.400 → v1.1.401](RobertCraigie/pyright-python@v1.1.400...v1.1.401)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
updates:
- [github.com/RobertCraigie/pyright-python: v1.1.401 → v1.1.402](RobertCraigie/pyright-python@v1.1.401...v1.1.402)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* doc: complete tensor doc

* doc: complete table doc

* doc: complete scalar doc

* doc: complete orc doc

* doc: complete memory doc

* doc: complete lib doc

* doc: complete json doc

* doc: complete hdfs doc

* doc: complete gcsfs doc

* doc: complete fs doc

* doc: complete flight doc

* doc: complete dataset doc

* doc: complete dataset parquet doc

* doc: complete dataset parquet encryption doc

* doc: complete cuda doc

* doc: complete csv doc

* doc: complete azurefs doc

* doc: complete core doc

* doc: complete interchange doc

* doc: complete array doc

* doc: complete builder doc

* doc: complete device doc

* doc: complete io doc

* doc: complete ipc doc

* doc: complete types doc

* mark deprecated apis

* doc: complete _compute doc

* doc: complete compute doc

* doc: update compute doc

* lint code
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.13 → v0.12.0](astral-sh/ruff-pre-commit@v0.11.13...v0.12.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.0 → v0.12.3](astral-sh/ruff-pre-commit@v0.12.0...v0.12.3)
- [github.com/RobertCraigie/pyright-python: v1.1.402 → v1.1.403](RobertCraigie/pyright-python@v1.1.402...v1.1.403)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@github-actions
Copy link

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@paddyroddy paddyroddy changed the title Incorporate zen-xu/pyarrow-stubs as a first effort in typing GH-32609: [Python] Incorporate zen-xu/pyarrow-stubs for typing Jul 19, 2025
@github-actions
Copy link

❌ GitHub issue apache#32609 could not be retrieved.

@paddyroddy
Copy link
Author

Closing in favour of #3 as history is polluted

@paddyroddy paddyroddy closed this Jul 19, 2025
@paddyroddy paddyroddy self-assigned this Jul 19, 2025
@paddyroddy paddyroddy deleted the incorporate-arrow-stubs branch July 19, 2025 15:30
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] Type checking support [Python] pyarrow missing py.typed marker file