Skip to content

Commit 14ef9d0

Browse files
authored
Merge pull request numpy#27757 from jorenham/typing/remove-ndarray.bitwise_count
TYP: Remove the non-existent ``bitwise_count`` methods of ``ndarray`` and ``generic``
2 parents 472c9de + fcd611a commit 14ef9d0

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

numpy/__init__.pyi

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,17 +3068,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
30683068
) -> CapsuleType: ...
30693069
def __dlpack_device__(self, /) -> tuple[L[1], L[0]]: ...
30703070

3071-
def bitwise_count(
3072-
self,
3073-
out: None | NDArray[Any] = ...,
3074-
*,
3075-
where: _ArrayLikeBool_co = ...,
3076-
casting: _CastingKind = ...,
3077-
order: _OrderKACF = ...,
3078-
dtype: DTypeLike = ...,
3079-
subok: builtins.bool = ...,
3080-
) -> NDArray[Any]: ...
3081-
30823071
# Keep `dtype` at the bottom to avoid name conflicts with `np.dtype`
30833072
@property
30843073
def dtype(self) -> _DType_co: ...
@@ -3210,17 +3199,6 @@ class generic(_ArrayOrScalarCommon):
32103199
@overload
32113200
def reshape(self, *shape: SupportsIndex, order: _OrderACF = ...) -> NDArray[Self]: ...
32123201

3213-
def bitwise_count(
3214-
self,
3215-
out: None | NDArray[Any] = ...,
3216-
*,
3217-
where: _ArrayLikeBool_co = ...,
3218-
casting: _CastingKind = ...,
3219-
order: _OrderKACF = ...,
3220-
dtype: DTypeLike = ...,
3221-
subok: builtins.bool = ...,
3222-
) -> Any: ...
3223-
32243202
def squeeze(self, axis: None | L[0] | tuple[()] = ...) -> Self: ...
32253203
def transpose(self, axes: None | tuple[()] = ..., /) -> Self: ...
32263204

0 commit comments

Comments
 (0)