Skip to content

Commit cd56db9

Browse files
committed
warn that IDOM_FEATURE_INDEX_AS_DEFAULT_KEY=1 will be the default
1 parent 29bef1e commit cd56db9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/idom/config.py

+12
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from pathlib import Path
1010
from tempfile import TemporaryDirectory
11+
from warnings import warn
1112

1213
from ._option import Option as _Option
1314

@@ -55,3 +56,14 @@
5556
5657
For more information on changes to this feature flag see: https://github.com/idom-team/idom/issues/351
5758
"""
59+
60+
if not IDOM_FEATURE_INDEX_AS_DEFAULT_KEY.current:
61+
warn(
62+
"In the next release, the feature flag IDOM_FEATURE_INDEX_AS_DEFAULT_KEY will "
63+
"be activated by default. To try this out before the next release simply set "
64+
"IDOM_FEATURE_INDEX_AS_DEFAULT_KEY=1 as an environment variable. After this "
65+
"change, you can revert to the old behavior by setting it to 0 instead. If you "
66+
"have questions or issues with this change report them here: "
67+
"https://github.com/idom-team/idom/issues/351",
68+
DeprecationWarning,
69+
)

0 commit comments

Comments
 (0)