Skip to content

Commit

Permalink
Merge pull request #31 from Anselmoo/Anselmoo/issue30
Browse files Browse the repository at this point in the history
fix: Refactor aio_theme_switch.py to use Union type for themes parameter
  • Loading branch information
AnnMarieW authored Jul 27, 2024
2 parents eaab177 + 61089a9 commit 2663c75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3 :: Only
Topic :: Scientific/Engineering :: Visualization

[options]
Expand Down
3 changes: 2 additions & 1 deletion src/aio/aio_theme_switch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fron typing import Union
from dash import html, dcc, Input, Output, clientside_callback, MATCH, ClientsideFunction, get_app, State
from dash_bootstrap_templates import load_figure_template
import dash_bootstrap_components as dbc
Expand Down Expand Up @@ -32,7 +33,7 @@ class ids:
def __init__(
self,
aio_id: str = str(uuid.uuid4()),
themes: tuple[str, str] | list[str] = (dbc.themes.CYBORG, dbc.themes.BOOTSTRAP),
themes: Union[tuple[str, str], list[str]] = (dbc.themes.CYBORG, dbc.themes.BOOTSTRAP),
icons=None,
switch_props: dict[str, any] = None,
):
Expand Down

0 comments on commit 2663c75

Please sign in to comment.