From 7d386f55f836f80d02fc4ba9b652509cf25c6959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= <31612826+anders-kiaer@users.noreply.github.com> Date: Thu, 23 Dec 2021 13:24:21 +0100 Subject: [PATCH] Remove `dash-bootstrap-components` `UserWarning` filter (#566) --- webviz_config/plugins/__init__.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/webviz_config/plugins/__init__.py b/webviz_config/plugins/__init__.py index 248a555a..4a372c3d 100644 --- a/webviz_config/plugins/__init__.py +++ b/webviz_config/plugins/__init__.py @@ -2,8 +2,6 @@ the utility itself. """ -import warnings - try: # Python 3.8+ from importlib.metadata import distributions @@ -14,16 +12,6 @@ from ._utils import load_webviz_plugins_with_metadata, PluginProjectMetaData -with warnings.catch_warnings(): - # As of Sep. 30th 2021, dash-bootstrap-components on PyPI - # (https://pypi.org/project/dash-bootstrap-components/) - # did not have a new version using dash==2.0 import statements. - # Ignore warnings temporarily from that module in order to not - # confuse end users. - warnings.filterwarnings( - "ignore", category=UserWarning, module="dash_bootstrap_components._table" - ) - - PLUGIN_METADATA, PLUGIN_PROJECT_METADATA = load_webviz_plugins_with_metadata( - distributions(), globals() - ) +PLUGIN_METADATA, PLUGIN_PROJECT_METADATA = load_webviz_plugins_with_metadata( + distributions(), globals() +)