Skip to content

Commit 05935ff

Browse files
committed
clarify deprecation warning
1 parent fd12f4b commit 05935ff

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dpctl/tensor/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@
214214
# deprecation warning for the dpctl.tensor module
215215
_warnings.warn(
216216
"dpctl.tensor is deprecated since dpctl 0.21.1 and will be removed in a "
217-
"future release. Install dpnp and use 'import dpnp.tensor' instead.",
217+
"future release. The functionality will be moved to separate package, dpnp "
218+
"(see: https://github.com/IntelPython/dpnp). After that, use "
219+
"'import dpnp.tensor' instead.",
218220
DeprecationWarning,
219221
stacklevel=2,
220222
)
@@ -415,8 +417,10 @@ def __getattr__(name: str): # pragma: no cover
415417
if name in __all__:
416418
_warnings.warn(
417419
f"dpctl.tensor.{name} is deprecated; dpctl.tensor is deprecated "
418-
"since dpctl 0.21.1 and will be removed in a future release. "
419-
"Install dpnp and use 'import dpnp.tensor' instead.",
420+
"since dpctl 0.21.1 and will be removed in a future release. The "
421+
"functionality will be moved to separate package, dpnp (see: "
422+
"https://github.com/IntelPython/dpnp). After that, use 'import "
423+
"dpnp.tensor' instead.",
420424
DeprecationWarning,
421425
stacklevel=2,
422426
)

0 commit comments

Comments
 (0)