Skip to content

Commit 055ea6d

Browse files
authored
support build array with list of scalar (apache#64)
1 parent 343f221 commit 055ea6d

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

pyarrow-stubs/__lib_pxi/array.pyi

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# mypy: disable-error-code="overload-overlap,misc"
1+
# mypy: disable-error-code="overload-overlap,misc,type-arg"
22

33
import datetime as dt
44

@@ -173,6 +173,16 @@ def array(
173173
memory_pool: MemoryPool | None = None,
174174
) -> ListArray: ...
175175
@overload
176+
def array(
177+
values: NullableIterable[_Scalar_CoT],
178+
type: None = None,
179+
mask: Mask | None = None,
180+
size: int | None = None,
181+
from_pandas: bool | None = None,
182+
safe: bool = True,
183+
memory_pool: MemoryPool | None = None,
184+
) -> Array[_Scalar_CoT]: ...
185+
@overload
176186
def array(
177187
values: Iterable | SupportArrowArray | SupportArrowDeviceArray,
178188
type: _DataTypeT,

pyarrow-stubs/__lib_pxi/table.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ def chunked_array(
202202
type: None = None,
203203
) -> ChunkedArray[scalar.ListScalar]: ...
204204
@overload
205+
def chunked_array(
206+
values: NullableIterable[_Scalar_CoT],
207+
type: None = None,
208+
) -> ChunkedArray[_Scalar_CoT]: ...
209+
@overload
205210
def chunked_array(
206211
values: Iterable | SupportArrowStream | SupportArrowArray,
207212
type: _DataTypeT,

0 commit comments

Comments
 (0)