The most recent version of dash_bootstrap_templates started to cause an error on importing:
from dash_bootstrap_templates import load_figure_template, template_from_url, ThemeChangerAIO
The error itself seems to originate in ThemeChangerAIO. The error message:
... aio_theme_switch.py", line 8, in <module> class ThemeSwitchAIO(html.Div): File "..\lib\site-packages\aio\aio_theme_switch.py", line 41, in ThemeSwitchAIO themes: Union[tuple[str, str], list[str]] = (dbc.themes.CYBORG, dbc.themes.BOOTSTRAP), TypeError: 'type' object is not subscriptable
Python version: 3.8.19
Library version:
dash-bootstrap-templates 1.2.4 pyhd8ed1ab_0 conda-forge