Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support pyarrow compute funcs #61

Merged
merged 24 commits into from
Sep 4, 2024
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
13 changes: 12 additions & 1 deletion pyarrow-stubs/__lib_pxi/scalar.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# mypy: disable-error-code="overload-overlap,misc"
# mypy: disable-error-code="overload-overlap,misc,type-arg"
import collections.abc
import datetime as dt

Expand Down Expand Up @@ -281,6 +281,10 @@ def scalar(
value: Decimal, *, from_pandas: bool | None = None, memory_pool: MemoryPool | None = None
) -> Decimal128Scalar: ...
@overload
def scalar(
value: dt.datetime, *, from_pandas: bool | None = None, memory_pool: MemoryPool | None = None
) -> TimestampScalar: ...
@overload
def scalar(
value: dt.date, *, from_pandas: bool | None = None, memory_pool: MemoryPool | None = None
) -> Date32Scalar: ...
Expand Down Expand Up @@ -349,6 +353,13 @@ def scalar(
memory_pool: MemoryPool | None = None,
) -> ListScalar[types.ListType[types.Decimal128Type]]: ...
@overload
def scalar(
value: CollectionValue[dt.datetime],
*,
from_pandas: bool | None = None,
memory_pool: MemoryPool | None = None,
) -> ListScalar[types.ListType[types.TimestampType]]: ...
@overload
def scalar(
value: CollectionValue[dt.date],
*,
Expand Down
7 changes: 6 additions & 1 deletion pyarrow-stubs/__lib_pxi/table.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# mypy: disable-error-code="overload-overlap"
# mypy: disable-error-code="overload-overlap,type-arg,misc"

import datetime as dt

Expand Down Expand Up @@ -162,6 +162,11 @@ def chunked_array(
type: None = None,
) -> ChunkedArray[scalar.StructScalar]: ...
@overload
def chunked_array(
values: NullableIterable[dt.datetime],
type: None = None,
) -> ChunkedArray[scalar.TimestampScalar]: ...
@overload
def chunked_array(
values: NullableIterable[dt.date],
type: None = None,
Expand Down
Loading