Skip to content

Commit 6a31014

Browse files
committed
annotation fix
1 parent 0319255 commit 6a31014

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

python/pyarrow-stubs/_compute.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ from typing import (
2929
overload,
3030
)
3131

32+
from types import EllipsisType
33+
3234
from . import lib
3335

3436
_Order: TypeAlias = Literal["ascending", "descending"]
@@ -52,7 +54,7 @@ class Function(lib._Weakrefable):
5254
@property
5355
def num_kernels(self) -> int: ...
5456
@property
55-
def kernels(self) -> list[ScalarKernel | VectorKernel | ScalarAggregateKernel | HashAggregateKernel]:
57+
def kernels(self) -> list[ScalarKernel | VectorKernel | ScalarAggregateKernel | HashAggregateKernel]: ...
5658
def call(
5759
self,
5860
args: Iterable,

python/pyarrow-stubs/acero.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# under the License.
1717

1818
import sys
19+
from collections.abc import Iterable, Collection
1920

2021
if sys.version_info >= (3, 11):
2122
from typing import Self
@@ -75,7 +76,7 @@ class AggregateNodeOptions(ExecNodeOptions):
7576
class OrderByNodeOptions(ExecNodeOptions):
7677
def __init__(
7778
self,
78-
sort_keys: Iterable[tuple[str, Literal["ascending", "descending"]], ...] = (),
79+
sort_keys: Iterable[tuple[str, Literal["ascending", "descending"]]] = (),
7980
*,
8081
null_placement: Literal["at_start", "at_end"] = "at_end",
8182
) -> None: ...

0 commit comments

Comments
 (0)