Skip to content

Commit

Permalink
use union
Browse files Browse the repository at this point in the history
  • Loading branch information
Lundez committed Aug 2, 2023
1 parent 97d236e commit 9574a79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solara/components/slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def SliderRangeInt(
max: int = 10,
step: int = 1,
on_value: Callable[[Tuple[int, int]], None] = None,
thumb_label: Union[bool | Literal["always"], None] = "always",
thumb_label: Union[bool, Literal["always"], None] = "always",
tick_labels: Union[list, Literal["end_points"], None] = "end_points",
disabled: bool = False,
) -> reacton.core.ValueElement[ipyvuetify.RangeSlider, Tuple[int, int]]:
Expand Down Expand Up @@ -163,7 +163,7 @@ def SliderFloat(
max: float = 10.0,
step: float = 0.1,
on_value: Callable[[float], None] = None,
thumb_label: Union[bool | Literal["always"], None] | None = "always",
thumb_label: Union[bool, Literal["always"], None] = "always",
tick_labels: Union[list, Literal["end_points"], None] = "end_points",
disabled: bool = False,
):
Expand Down Expand Up @@ -230,7 +230,7 @@ def SliderRangeFloat(
max: float = 10.0,
step: float = 0.1,
on_value: Callable[[Tuple[float, float]], None] = None,
thumb_label: Union[bool | Literal["always"], None] = "always",
thumb_label: Union[bool, Literal["always"], None] = "always",
tick_labels: Union[list, Literal["end_points"], None] = "end_points",
disabled: bool = False,
) -> reacton.core.ValueElement[ipyvuetify.RangeSlider, Tuple[float, float]]:
Expand Down

0 comments on commit 9574a79

Please sign in to comment.