We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73b20d commit 0e95f8bCopy full SHA for 0e95f8b
.pre-commit-config.yaml
@@ -18,7 +18,7 @@ repos:
18
exclude: ".ipynb"
19
20
- repo: https://github.com/astral-sh/ruff-pre-commit
21
- rev: v0.4.10
+ rev: v0.5.0
22
hooks:
23
- id: ruff
24
args: ["--fix"]
sparse/numba_backend/_common.py
@@ -24,9 +24,7 @@ def _is_scipy_sparse_obj(x):
"""
25
Tests if the supplied argument is a SciPy sparse object.
26
27
- if hasattr(x, "__module__") and x.__module__.startswith("scipy.sparse"):
28
- return True
29
- return False
+ return bool(hasattr(x, "__module__") and x.__module__.startswith("scipy.sparse"))
30
31
32
def _check_device(func):
0 commit comments