Skip to content

The most recent version (1.2.4) started to cause an import error  #41

@alex11818

Description

@alex11818

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions