Skip to content

Commit 377872c

Browse files
committed
add pyarrow-stubs. add comment about check_array_indexer
1 parent 815edae commit 377872c

File tree

6 files changed

+5
-3
lines changed

6 files changed

+5
-3
lines changed

pandas-stubs/core/arrays/arrow/__init__.pyi

Whitespace-only changes.

pandas-stubs/core/arrays/arrow/dtype.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pyarrow as pa # pyright: ignore[reportMissingTypeStubs]
1+
import pyarrow as pa
22

33
from pandas._libs.missing import NAType
44

pandas-stubs/core/indexers/utils.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ from pandas._typing import (
66
np_ndarray_int,
77
)
88

9+
# Docs may not be right. See pandas-dev/pandas#62562
910
@overload
1011
def check_array_indexer(array: AnyArrayLike, indexer: int) -> int: ...
1112
@overload

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ types-python-dateutil = ">=2.8.19"
6868
beautifulsoup4 = ">=4.14.2"
6969
html5lib = ">=1.1"
7070
python-calamine = ">=0.2.0"
71+
pyarrow-stubs = { version = ">=20.0.0.20250928", python = "<4" }
7172

7273
[build-system]
7374
requires = ["poetry-core>=1.0.0"]

tests/test_dtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
BooleanArray,
2121
IntegerArray,
2222
)
23-
import pyarrow as pa # pyright: ignore[reportMissingTypeStubs]
23+
import pyarrow as pa
2424
from typing_extensions import assert_type
2525

2626
from pandas._typing import Scalar

tests/test_pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def test_crosstab() -> None:
678678
def test_arrow_dtype() -> None:
679679
pytest.importorskip("pyarrow")
680680

681-
import pyarrow as pa # pyright: ignore[reportMissingTypeStubs]
681+
import pyarrow as pa
682682

683683
check(
684684
assert_type(

0 commit comments

Comments
 (0)