diff --git a/src/pystencils/bit_masks.py b/src/pystencils/bit_masks.py new file mode 100644 index 0000000000000000000000000000000000000000..95a59e1ff712e3a6a3f449c92e2c8d8bc0e12a04 --- /dev/null +++ b/src/pystencils/bit_masks.py @@ -0,0 +1,9 @@ +from .sympyextensions.bit_masks import flag_cond as _flag_cond + +from warnings import warn +warn( + "Importing the `pystencils.bit_masks` module is deprecated. " + "Import `flag_cond` from `pystencils.sympyextensions` instead." +) + +flag_cond = _flag_cond diff --git a/src/pystencils/typing.py b/src/pystencils/typing.py new file mode 100644 index 0000000000000000000000000000000000000000..22f8f673ef21c1c4bfde454a2023b3c2ea2c745d --- /dev/null +++ b/src/pystencils/typing.py @@ -0,0 +1,11 @@ +from .sympyextensions import TypedSymbol as _TypedSymbol +from .types import create_type as _create_type + +from warnings import warn +warn( + "Importing `TypedSymbol` and `create_type` from `pystencils.typing` is deprecated. " + "Import from `pystencils` instead." +) + +TypedSymbol = _TypedSymbol +create_type = _create_type