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 fbdd5c7 commit 94e67d1Copy full SHA for 94e67d1
.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.6.7
+ rev: v0.6.8
22
hooks:
23
- id: ruff
24
args: ["--fix"]
sparse/numba_backend/_common.py
@@ -33,7 +33,7 @@ def _is_scipy_sparse_obj(x):
33
def _check_device(func):
34
@wraps(func)
35
def wrapped(*args, **kwargs):
36
- device = kwargs.get("device", None)
+ device = kwargs.get("device")
37
if device not in {"cpu", None}:
38
raise ValueError("Device must be `'cpu'` or `None`.")
39
return func(*args, **kwargs)
0 commit comments