Skip to content

Commit 94e67d1

Browse files
[pre-commit.ci] pre-commit autoupdate (#783)
1 parent fbdd5c7 commit 94e67d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
exclude: ".ipynb"
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.6.7
21+
rev: v0.6.8
2222
hooks:
2323
- id: ruff
2424
args: ["--fix"]

sparse/numba_backend/_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _is_scipy_sparse_obj(x):
3333
def _check_device(func):
3434
@wraps(func)
3535
def wrapped(*args, **kwargs):
36-
device = kwargs.get("device", None)
36+
device = kwargs.get("device")
3737
if device not in {"cpu", None}:
3838
raise ValueError("Device must be `'cpu'` or `None`.")
3939
return func(*args, **kwargs)

0 commit comments

Comments
 (0)