Skip to content

Commit 3daad9a

Browse files
authored
make linter happy
1 parent 9e3a570 commit 3daad9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cuda_core/cuda/core/experimental/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
1414
"""
1515

16-
import warnings
17-
1816

1917
def _warn_deprecated():
2018
"""Emit a deprecation warning for using the experimental namespace.
@@ -23,6 +21,7 @@ def _warn_deprecated():
2321
Subsequent accesses to attributes (like utils, Device, etc.) do not trigger
2422
additional warnings since they are already set in the module namespace.
2523
"""
24+
import warnings
2625
warnings.warn(
2726
"The cuda.core.experimental namespace is deprecated. "
2827
"Please import directly from cuda.core instead. "
@@ -37,7 +36,6 @@ def _warn_deprecated():
3736
# Import from new locations and re-export
3837
_warn_deprecated()
3938

40-
del warnings
4139

4240
from cuda.core import utils # noqa: E402
4341
from cuda.core._device import Device # noqa: E402

0 commit comments

Comments
 (0)