From c30f0c4fc40ffe311ff7bd0b8580559b57174a29 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 12:12:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sparse/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sparse/__init__.py b/sparse/__init__.py index 99ec9d02..adc9b09e 100644 --- a/sparse/__init__.py +++ b/sparse/__init__.py @@ -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}")