Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/pyarrow-stubs-tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def test_invalid_usage() -> None:
arr.slice("1") # type: ignore[arg-type]
arr.equals(object()) # type: ignore[arg-type]
arr.equals(None) # type: ignore[arg-type]
arr.format() # type: ignore[attr-defined] # ty: ignore[unresolved-attribute] # noqa: E501
arr.format() # type: ignore[attr-defined] # ty: ignore[missing-attribute] # noqa: E501
pa.Array.from_pandas(1) # type: ignore[arg-type]
# Arrays define __eq__ but not __hash__, hence unhashable at runtime
_: Hashable = arr # type: ignore[assignment] # ty: ignore[invalid-assignment]
Expand Down
6 changes: 3 additions & 3 deletions python/pyarrow-stubs/__lib/types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,9 @@ class KeyValueMetadata(_Metadata, Mapping[bytes, bytes]):
def key(self, i: int) -> bytes: ...
def value(self, i: int) -> bytes: ...
# The runtime yields generators instead of Mapping views
def keys(self) -> Iterator[bytes]: ... # type: ignore[override] # ty: ignore[invalid-method-override] # noqa: E501
def values(self) -> Iterator[bytes]: ... # type: ignore[override] # ty: ignore[invalid-method-override] # noqa: E501
def items(self) -> Iterator[tuple[bytes, bytes]]: ... # type: ignore[override] # ty: ignore[invalid-method-override] # noqa: E501
def keys(self) -> Iterator[bytes]: ... # type: ignore[override] # ty: ignore[incompatible-method-override] # noqa: E501
def values(self) -> Iterator[bytes]: ... # type: ignore[override] # ty: ignore[incompatible-method-override] # noqa: E501
def items(self) -> Iterator[tuple[bytes, bytes]]: ... # type: ignore[override] # ty: ignore[incompatible-method-override] # noqa: E501
def get_all(self, key: str | bytes) -> list[bytes]: ...
def to_dict(self) -> dict[bytes, bytes]: ...

Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ include = ["pyarrow-stubs", "pyarrow-stubs-tests"]
include = ["pyarrow-stubs/__lib/array.pyi"]
[tool.ty.overrides.rules]
# Some array classes override methods with a different signature at runtime.
invalid-method-override = "ignore"
incompatible-method-override = "ignore"

[[tool.ty.overrides]]
include = ["pyarrow-stubs-tests/**"]
Expand Down
16 changes: 8 additions & 8 deletions python/requirements-stubs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ fsspec==2026.9.0
# NumPy's annotations change between releases, which changes the results of
# the type checkers.
numpy==2.4.6
mypy==2.4.0
pandas-stubs==3.0.5.260914
mypy==2.4.1
pandas-stubs==3.1.0.261029
pyright==1.1.414
# The scipy extra installs the matching scipy, which the type stub tests import.
scipy-stubs[scipy]==1.17.1.5
ty==0.0.99
types-cffi==2.1.0.20260827
types-psutil==7.2.2.20260906
types-python-dateutil==2.9.0.20261021
types-requests==2.33.0.20261006
ty==0.0.107
types-cffi==2.1.0.20261122
types-psutil==7.2.2.20261122
types-python-dateutil==2.9.0.20261122
types-requests==2.33.0.20261030
# Annotated dependencies of the type stub tests, usually installed already.
pytest
typing_extensions>=4.12.0
typing_extensions>=4.16.0
Loading