Skip to content

Commit

Permalink
TYP: Remove the non-existent bitwise_count methods of ndarray
Browse files Browse the repository at this point in the history
… and ``generic``
  • Loading branch information
jorenham committed Nov 13, 2024
1 parent 9150cac commit fcd611a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions numpy/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3068,17 +3068,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
) -> CapsuleType: ...
def __dlpack_device__(self, /) -> tuple[L[1], L[0]]: ...

def bitwise_count(
self,
out: None | NDArray[Any] = ...,
*,
where: _ArrayLikeBool_co = ...,
casting: _CastingKind = ...,
order: _OrderKACF = ...,
dtype: DTypeLike = ...,
subok: builtins.bool = ...,
) -> NDArray[Any]: ...

# Keep `dtype` at the bottom to avoid name conflicts with `np.dtype`
@property
def dtype(self) -> _DType_co: ...
Expand Down Expand Up @@ -3210,17 +3199,6 @@ class generic(_ArrayOrScalarCommon):
@overload
def reshape(self, *shape: SupportsIndex, order: _OrderACF = ...) -> NDArray[Self]: ...

def bitwise_count(
self,
out: None | NDArray[Any] = ...,
*,
where: _ArrayLikeBool_co = ...,
casting: _CastingKind = ...,
order: _OrderKACF = ...,
dtype: DTypeLike = ...,
subok: builtins.bool = ...,
) -> Any: ...

def squeeze(self, axis: None | L[0] | tuple[()] = ...) -> Self: ...
def transpose(self, axes: None | tuple[()] = ..., /) -> Self: ...

Expand Down

0 comments on commit fcd611a

Please sign in to comment.