Skip to content

Commit ac274a0

Browse files
committed
feature flag warning should be deprecation + ignore in cli
1 parent fef4197 commit ac274a0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/idom/__main__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import warnings
2+
13
from .cli import main
24

35

46
if __name__ == "__main__":
5-
main()
7+
with warnings.catch_warnings():
8+
warnings.simplefilter(DeprecationWarning)
9+
main()

src/idom/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@
7676
"by default. For more information on changes to this feature flag, see: "
7777
"https://github.com/idom-team/idom/issues/351"
7878
),
79-
UserWarning,
79+
DeprecationWarning,
8080
)

0 commit comments

Comments
 (0)