Skip to content

Commit 51a7a4e

Browse files
rokdangotbanned
andauthored
Update python/pyarrow-stubs/pyarrow/_stubs_typing.pyi
Co-authored-by: Dan Redding <125183946+dangotbanned@users.noreply.github.com>
1 parent 43e7cc6 commit 51a7a4e

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

python/pyarrow-stubs/pyarrow/_stubs_typing.pyi

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,29 @@ Compression: TypeAlias = Literal[
4646
NullEncoding: TypeAlias = Literal["mask", "encode"]
4747
NullSelectionBehavior: TypeAlias = Literal["drop", "emit_null"]
4848
TimeUnit: TypeAlias = Literal["s", "ms", "us", "ns"]
49+
from pyarrow import lib
50+
51+
IntegerType: TypeAlias = (
52+
lib.Int8Type
53+
| lib.Int16Type
54+
| lib.Int32Type
55+
| lib.Int64Type
56+
| lib.UInt8Type
57+
| lib.UInt16Type
58+
| lib.UInt32Type
59+
| lib.UInt64Type
60+
)
61+
4962
Mask: TypeAlias = (
5063
Sequence[bool | None]
5164
| NDArray[np.bool_]
52-
| BooleanArray
65+
| lib.Array[lib.Scalar[lib.BoolType]]
5366
| ChunkedArray[Any]
5467
)
5568
Indices: TypeAlias = (
5669
Sequence[int | None]
5770
| NDArray[np.integer[Any]]
58-
| IntegerArray
71+
| lib.Array[lib.Scalar[IntegerType]]
5972
| ChunkedArray[Any]
6073
)
6174

0 commit comments

Comments
 (0)