Skip to content
Snippets Groups Projects
Commit 0810cb8c authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix deprecation warning stacklevel. fix linting.

parent 71ab7480
No related branches found
No related tags found
1 merge request!458HIP Target and Platform
Pipeline #75803 passed
......@@ -57,7 +57,6 @@ from ..extensions.foreign_ast import PsForeignExpression
from ..memory import PsSymbol
from ..constants import PsConstant
from ...types import PsType
from ...codegen import Target
if TYPE_CHECKING:
from ...codegen import Kernel
......
......@@ -5,7 +5,8 @@ from warnings import warn
warn(
"Importing anything from `pystencils.enums` is deprecated and the module will be removed in pystencils 2.1. "
"Import from `pystencils` instead.",
FutureWarning
FutureWarning,
stacklevel=2,
)
Target = _Target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment