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

fix type hint for sort_by #130

Merged
merged 1 commit into from
Oct 23, 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
2 changes: 1 addition & 1 deletion pyarrow-stubs/__lib_pxi/table.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ class _Tabular(_PandasConvertible[pd.DataFrame], Generic[_ColumnT]):
def schema(self) -> Schema: ...
@property
def nbytes(self) -> int: ...
def sort_by(self, sorting: Order | list[tuple[str, Order]], **kwargs) -> Self: ...
def sort_by(self, sorting: str | list[tuple[str, Order]], **kwargs) -> Self: ...
def take(self, indices: Indices) -> Self: ...
def filter(
self, mask: Mask | Expression, null_selection_behavior: NullSelectionBehavior = "drop"
Expand Down
2 changes: 1 addition & 1 deletion pyarrow-stubs/_dataset.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Dataset(lib._Weakrefable):
@property
def schema(self) -> lib.Schema: ...
def filter(self, expression: Expression) -> Self: ...
def sort_by(self, sorting: Order | list[tuple[str, Order]], **kwargs) -> InMemoryDataset: ...
def sort_by(self, sorting: str | list[tuple[str, Order]], **kwargs) -> InMemoryDataset: ...
def join(
self,
right_dataset: Dataset,
Expand Down