From 2ce9dcd5fbfede964483b43abc5918dda9c7ef4f Mon Sep 17 00:00:00 2001 From: Aditya Paul <122125787+Paulie-Aditya@users.noreply.github.com> Date: Wed, 25 Oct 2023 23:18:08 +0530 Subject: [PATCH] Allow `str` for `tkinter.Scrollbar.set()` (#10926) --- stdlib/tkinter/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/tkinter/__init__.pyi b/stdlib/tkinter/__init__.pyi index a0a88a8ac..51ed55db8 100644 --- a/stdlib/tkinter/__init__.pyi +++ b/stdlib/tkinter/__init__.pyi @@ -2888,7 +2888,7 @@ class Scrollbar(Widget): def fraction(self, x: int, y: int) -> float: ... def identify(self, x: int, y: int) -> Literal["arrow1", "arrow2", "slider", "trough1", "trough2", ""]: ... def get(self) -> tuple[float, float, float, float] | tuple[float, float]: ... - def set(self, first: float, last: float) -> None: ... + def set(self, first: float | str, last: float | str) -> None: ... _TextIndex: TypeAlias = _tkinter.Tcl_Obj | str | float | Misc