Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent 6412ddc commit c30f0c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sparse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def __exit__(self, exc_type, exc_value, traceback):
@staticmethod
def get_backend_module():
backend = backend_var.get()
if backend == BackendType.PyData:
import sparse.finch_backend as backend_module
elif backend == BackendType.Finch:
if backend == BackendType.PyData or backend == BackendType.Finch:
import sparse.finch_backend as backend_module
else:
raise ValueError(f"Invalid backend identifier: {backend}")
Expand Down

0 comments on commit c30f0c4

Please sign in to comment.