Skip to content

Commit

Permalink
👽️ sparse: add axis param to _spbase.count_nonzero
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 17, 2024
1 parent 64b8578 commit 6dab1dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .mypyignore-todo
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
scipy\.sparse\.(_?construct\.)?rand(om(_array)?)?
scipy\.sparse\._coo\._coo_base\.tensordot
scipy\.sparse\._data\._minmax_mixin\.(arg|nan)?(max|min)
scipy\.sparse\._(base\._sp|coo\._coo_|dia\._dia_|dok\._dok_|lil\._lil_)base\.count_nonzero

scipy\.spatial\.distance\.directed_hausdorff
scipy\.spatial\.transform\.(_?rotation\.)?Rotation\.random
Expand Down
2 changes: 1 addition & 1 deletion scipy-stubs/sparse/_base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ class _spbase(Generic[_SCT_co, _ShapeT_co]):

#
def nonzero(self, /) -> tuple[Index1D, Index1D]: ...
def count_nonzero(self, /) -> int: ...
def count_nonzero(self, /, axis: int | None = None) -> int: ...
def conjugate(self, /, copy: bool = True) -> Self: ...
def conj(self, /, copy: bool = True) -> Self: ...
def transpose(self, /, axes: None = None, copy: bool = False) -> Self: ...
Expand Down
4 changes: 0 additions & 4 deletions scipy-stubs/sparse/_compressed.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,6 @@ class _cs_matrix(
maxprint: int | None = None,
) -> None: ...

#
@override
def count_nonzero(self, /, axis: None = None) -> int: ...

#
def sorted_indices(self, /) -> Self: ...
def sort_indices(self, /) -> None: ...
Expand Down

0 comments on commit 6dab1dd

Please sign in to comment.