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 de312ea commit 65396a8Copy full SHA for 65396a8
sparse/__init__.py
@@ -14,8 +14,12 @@ class BackendType(Enum):
14
15
_ENV_VAR_NAME = "SPARSE_BACKEND"
16
17
-if _ENV_VAR_NAME in os.environ:
18
- warnings.warn("Selectable backends feature in `sparse` might change in the future.", FutureWarning, stacklevel=1)
+if os.environ.get(_ENV_VAR_NAME, "") != "":
+ warnings.warn(
19
+ "Changing back-ends is a development feature, please do not rely on it in production.",
20
+ FutureWarning,
21
+ stacklevel=1,
22
+ )
23
_backend_name = os.environ[_ENV_VAR_NAME]
24
else:
25
_backend_name = BackendType.Numba.value
0 commit comments