Skip to content

Conversation

@paddyroddy
Copy link

@paddyroddy paddyroddy commented Jul 20, 2025

Rationale for this change

Part of #5.

What changes are included in this PR?

Fixes the unsupported-reference. This largely comes from the order in which things have been declared.

Are these changes tested?

Yes, locally, type checking passes.

Are there any user-facing changes?

No.

@paddyroddy paddyroddy self-assigned this Jul 20, 2025
@paddyroddy paddyroddy requested a review from rok as a code owner July 20, 2025 14:39
@paddyroddy paddyroddy linked an issue Jul 20, 2025 that may be closed by this pull request
@github-actions
Copy link

⚠️ GitHub issue #20 has no components, please add labels for components.

Base automatically changed from typing-ci to main July 24, 2025 15:08
@github-actions
Copy link

⚠️ GitHub issue #20 has no components, please add labels for components.

@rok rok force-pushed the main branch 3 times, most recently from 5354959 to 2cf52b4 Compare July 24, 2025 16:55
@rok rok changed the base branch from main to add-pyarrow-stubs July 24, 2025 17:23
@github-actions
Copy link

⚠️ GitHub issue #20 has no components, please add labels for components.

@rok rok merged commit d3fa3cd into add-pyarrow-stubs Jul 24, 2025
35 of 52 checks passed
@rok rok deleted the unresolved-reference branch July 24, 2025 18:29
rok added a commit that referenced this pull request Jul 28, 2025
* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix `unresolved-reference` error

---------

Co-authored-by: Rok Mihevc <[email protected]>
rok added a commit that referenced this pull request Jul 28, 2025
* Add typing to arrow using stubs

* GH-7: [Python] Fix invalid-context-manager error (#30)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix invalid-context-manager

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-8: [Python] Fix invalid-type-form (#31)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix invalid-type-form errors

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-9: [Python] Fix non-subscriptable error (#32)

* fix: The type parameter of array should be covariant (apache#253)

* release 20.0.0.20250716 (apache#254)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix non-subscriptable issues

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-11: [Python] Fix no-matching-overload error (#34)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix no-matching-overload

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-12: [Python] Fix `invalid-return-type` error (#25)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix `invalid-return-type` error

* Fix linting

---------

Co-authored-by: Rok Mihevc <[email protected]>

* GH-14: [Python] Fix `not-iterable` typing (#26)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix `not-iterable` error

---------

Co-authored-by: Rok Mihevc <[email protected]>

* GH-15: [Python] Fix possibly-unbound-attribute (#38)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix possibly-unbound-attribute

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-16: [Python] Fix too-many-positional-arguments (#35)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix too-many-positional-arguments

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-17: [Python] Fix unknown-argument (#36)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix unknown-argument

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-18: [Python] Fix unresolved-attribute (#37)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix unresolved-attribute

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-19: [Python] Fix unresolved-global (#39)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix unresolved-global

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-20: [Python] Fix `unsupported-reference` typing (#24)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix `unresolved-reference` error

---------

Co-authored-by: Rok Mihevc <[email protected]>

* GH-6: [Python] Fix invalid-argument-type error (#29)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* removing OrderedDict, etc

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-27: [Python] Fix call-non-callable error (#28)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* to_sparse appears deprecated, ignore inline

* Update python/pyarrow/tests/test_feather.py

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-10: [Python] Fix invalid-assignment error (#33)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

This reverts commit 7ee3d2f.

* Fix invalid-assignment

---------

Co-authored-by: Patrick J. Roddy <[email protected]>

* GH-21: [Python] Fix `unsupported-operator` typing (#22)

* Add py.typed file to signify that the library is typed

See the relevant PEP https://peps.python.org/pep-0561

* Prepare `pyarrow-stubs` for history merging

MINOR: [Python] Prepare `pyarrow-stubs` for history merging

Co-authored-by: ZhengYu, Xu <[email protected]>

* Add `ty` configuration and suppress error codes

* One line per rule

* Add licence header from original repo for all `.pyi` files

* Revert "Add licence header from original repo for all `.pyi` files"

This reverts commit 1631f39.

* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unsupported-operator` error

---------

* fix unsupported-operator

* Fix unresolved-reference

* Fix not-iterable

* Fix no-matching-overload

* Fix invalid-assignment

* Fix too-many-positional-arguments

* Fix invalid-argument-type

* Fix missing-argument

* Fix unresolved-import

* Fix possibly-unbound-import

* Fix possibly-unbound-import

* Fix unresolved-attribute

* Revert test changes

* Converging

---------

Co-authored-by: Patrick J. Roddy <[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.

unresolved-reference