Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored Sep 30, 2024
1 parent fbdd5c7 commit 94e67d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
exclude: ".ipynb"

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.7
rev: v0.6.8
hooks:
- id: ruff
args: ["--fix"]
Expand Down
2 changes: 1 addition & 1 deletion sparse/numba_backend/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _is_scipy_sparse_obj(x):
def _check_device(func):
@wraps(func)
def wrapped(*args, **kwargs):
device = kwargs.get("device", None)
device = kwargs.get("device")
if device not in {"cpu", None}:
raise ValueError("Device must be `'cpu'` or `None`.")
return func(*args, **kwargs)
Expand Down

0 comments on commit 94e67d1

Please sign in to comment.