diff --git a/stdlib/tkinter/ttk.pyi b/stdlib/tkinter/ttk.pyi index bf184bc2e8f8..dcc4a70412f7 100644 --- a/stdlib/tkinter/ttk.pyi +++ b/stdlib/tkinter/ttk.pyi @@ -1414,7 +1414,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: @@ -1427,7 +1427,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