Skip to content

Commit

Permalink
remove Scalar generic type var _IsValid (#56)
Browse files Browse the repository at this point in the history
* remove Scalar generic type var _IsValid
  • Loading branch information
zen-xu authored Aug 30, 2024
1 parent 14c5854 commit 9c157a6
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 105 deletions.
4 changes: 2 additions & 2 deletions pixi.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1293,9 +1293,9 @@ packages:
requires_python: '>=3.8'
- kind: pypi
name: pyarrow-stubs
version: 10.0.1.9
version: '20240828'
path: .
sha256: 5c30ac8c8008518b3a446a57a76cfde327f6fc5b7d4ab9db5deea86294d4b3b2
sha256: 94683bcd78fcecd7a11e79fd433e5bc498768bce83e286b25a9b50f6f943b83a
requires_dist:
- pyarrow>=17
requires_python: '>=3.8,<4'
Expand Down
10 changes: 5 additions & 5 deletions pyarrow-stubs/__lib_pxi/array.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,misc"

import datetime as dt

Expand Down Expand Up @@ -1189,8 +1189,8 @@ class Array(_PandasConvertible[pd.Series], Generic[_ScalarT]):
def is_nan(self) -> BooleanArray: ...
def is_valid(self) -> BooleanArray: ...
def fill_null(
self: Array[Scalar[_BasicDataType[_AsPyType], Any]], fill_value: _AsPyType
) -> Array[Scalar[_BasicDataType[_AsPyType], Any]]: ...
self: Array[Scalar[_BasicDataType[_AsPyType]]], fill_value: _AsPyType
) -> Array[Scalar[_BasicDataType[_AsPyType]]]: ...
@overload
def __getitem__(self, key: int) -> _ScalarT: ...
@overload
Expand All @@ -1215,7 +1215,7 @@ class Array(_PandasConvertible[pd.Series], Generic[_ScalarT]):
) -> scalar.Int64Scalar: ...
@overload
def index(
self: Array[Scalar[_BasicDataType[_AsPyType], Any]],
self: Array[Scalar[_BasicDataType[_AsPyType]]],
value: _AsPyType,
start: int | None = None,
end: int | None = None,
Expand All @@ -1226,7 +1226,7 @@ class Array(_PandasConvertible[pd.Series], Generic[_ScalarT]):
def __array__(self, dtype: np.dtype | None = None, copy: bool | None = None) -> np.ndarray: ...
def to_numpy(self, zero_copy_only: bool = True, writable: bool = False) -> np.ndarray: ...
def to_pylist(
self: Array[Scalar[_BasicDataType[_AsPyType], Any]],
self: Array[Scalar[_BasicDataType[_AsPyType]]],
) -> list[_AsPyType | None]: ...
tolist = to_pylist
def validate(self, *, full: bool = False) -> None: ...
Expand Down
Loading

0 comments on commit 9c157a6

Please sign in to comment.