diff --git a/stdlib/tkinter/ttk.pyi b/stdlib/tkinter/ttk.pyi index 21b731f55bb4..bb517d39e4e6 100644 --- a/stdlib/tkinter/ttk.pyi +++ b/stdlib/tkinter/ttk.pyi @@ -1426,7 +1426,7 @@ class OptionMenu(Menubutton): # rest of these are keyword-only because *args syntax used above style: str = "", direction: Literal["above", "below", "left", "right", "flush"] = "below", - command: Callable[[tkinter.StringVar], object] | None = None, + command: Callable[[str], object] | None = None, name: str | None = None, ) -> None: ... else: @@ -1439,7 +1439,7 @@ class OptionMenu(Menubutton): # rest of these are keyword-only because *args syntax used above style: str = "", direction: Literal["above", "below", "left", "right", "flush"] = "below", - command: Callable[[tkinter.StringVar], object] | None = None, + command: Callable[[str], object] | None = None, ) -> None: ... # configure, config, cget, destroy are inherited from Menubutton # destroy and __setitem__ are overridden, signature does not change