Skip to content

Commit 2400f0b

Browse files
committed
Deprecated enums module.
1 parent 1bb2bdc commit 2400f0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

domdf_python_tools/enums.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@
2323
# MA 02110-1301, USA.
2424
#
2525

26+
# stdlib
27+
import warnings
28+
2629
# 3rd party
2730
from enum_tools import IntEnum, StrEnum
2831

2932
__all__ = ["IntEnum", "StrEnum"]
33+
34+
warnings.warn(
35+
"Importing enums from domdf_python_tools.enums is deprecated since 0.4.10 "
36+
"and the module will be removed in 0.5.0. Import from the enum_tools library instead."
37+
)

0 commit comments

Comments
 (0)