Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit bbda694

Browse files
committed
improve dash import test
see plotly/dash#1143
1 parent 610af0f commit bbda694

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Diff for: dash_core_components_base/__init__.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,11 @@
1414
__version__ = package['version']
1515

1616
# Module imports trigger a dash.development import, need to check this first
17-
if not hasattr(_dash, 'development'):
17+
if not hasattr(_dash, '__plotly_dash') and not hasattr(_dash, 'development'):
1818
print("Dash was not successfully imported. Make sure you don't have a file "
1919
"named \n'dash.py' in your current directory.", file=_sys.stderr)
2020
_sys.exit(1)
2121

22-
# Must update to dash>=0.23.1 to use this version of dash-core-components
23-
if not hasattr(_dash.development.base_component, '_explicitize_args'):
24-
print("Please update the `dash` module to >= 0.23.1 to use this "
25-
"version of dash_core_components.\n"
26-
"You are using version {:s}".format(_dash.version.__version__),
27-
file=_sys.stderr)
28-
_sys.exit(1)
29-
3022
from ._imports_ import * # noqa: F401, F403
3123
from ._imports_ import __all__ # noqa: E402
3224

0 commit comments

Comments
 (0)