From 19360bd12368b714f1803f14c2e1291a7e38e58f Mon Sep 17 00:00:00 2001 From: Bruno Cabral Date: Tue, 1 Aug 2023 12:13:12 -0700 Subject: [PATCH] CTkSlider typing hint: from_ and to can be float --- customtkinter/windows/widgets/ctk_slider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/customtkinter/windows/widgets/ctk_slider.py b/customtkinter/windows/widgets/ctk_slider.py index abae543..6e00713 100644 --- a/customtkinter/windows/widgets/ctk_slider.py +++ b/customtkinter/windows/widgets/ctk_slider.py @@ -30,8 +30,8 @@ class CTkSlider(CTkBaseClass): button_color: Optional[Union[str, Tuple[str, str]]] = None, button_hover_color: Optional[Union[str, Tuple[str, str]]] = None, - from_: int = 0, - to: int = 1, + from_: int | float = 0, + to: int | float = 1, state: str = "normal", number_of_steps: Union[int, None] = None, hover: bool = True,