From 9574a79b1846a8aa1192fa0c65c716ed9de0dfc0 Mon Sep 17 00:00:00 2001 From: "hampus.londogard@gmail.com" Date: Wed, 2 Aug 2023 11:30:57 +0200 Subject: [PATCH] use union --- solara/components/slider.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solara/components/slider.py b/solara/components/slider.py index 59101db2b..ec081fd24 100644 --- a/solara/components/slider.py +++ b/solara/components/slider.py @@ -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]]: @@ -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, ): @@ -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]]: