Skip to content

Commit

Permalink
fix _Tabular.__getitem__
Browse files Browse the repository at this point in the history
  • Loading branch information
zen-xu committed Aug 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 14453ea commit 82d62ab
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyarrow-stubs/__lib_pxi/array.pyi
Original file line number Diff line number Diff line change
@@ -1544,7 +1544,7 @@ class StructArray(Array[scalar.StructScalar]):
def flatten(self, memory_pool: MemoryPool | None = None) -> list[Array]: ...
@staticmethod
def from_arrays(
arrays: list[Array],
arrays: Iterable[Array],
names: list[str] | None = None,
fields: list[Field] | None = None,
mask=None,
4 changes: 4 additions & 0 deletions pyarrow-stubs/__lib_pxi/table.pyi
Original file line number Diff line number Diff line change
@@ -377,6 +377,10 @@ class _Tabular(_PandasConvertible[pd.DataFrame], Generic[_ColumnT]):
def __dataframe__(
self, nan_as_null: bool = False, allow_copy: bool = True
) -> _PyArrowDataFrame: ...
@overload
def __getitem__(self, key: int | str) -> _ColumnT: ...
@overload
def __getitem__(self, key: slice) -> Self: ...
def __len__(self) -> int: ...
def column(self, i: int | str) -> _ColumnT: ...
@property

0 comments on commit 82d62ab

Please sign in to comment.