diff --git a/stdlib/tkinter/__init__.pyi b/stdlib/tkinter/__init__.pyi index 9f1c346cdc19..7c7e3cc29656 100644 --- a/stdlib/tkinter/__init__.pyi +++ b/stdlib/tkinter/__init__.pyi @@ -766,6 +766,8 @@ class Wm: ) -> tuple[int, int, int, int] | None: ... aspect = wm_aspect + + # wm_attributes: Get all attributes if sys.version_info >= (3, 13): @overload def wm_attributes(self, *, return_python_dict: Literal[False] = False) -> tuple[Any, ...]: ... @@ -775,6 +777,7 @@ class Wm: @overload def wm_attributes(self) -> tuple[Any, ...]: ... + # wm_attributes: Get one attribute (old variant using string that starts with "-") @overload def wm_attributes(self, option: Literal["-alpha"], /) -> float: ... @overload @@ -806,6 +809,7 @@ class Wm: @overload def wm_attributes(self, option: Literal["-type"], /) -> str: ... if sys.version_info >= (3, 13): + # wm_attributes: Get one attribute (new variant without "-") @overload def wm_attributes(self, option: Literal["alpha"], /) -> float: ... @overload @@ -837,6 +841,7 @@ class Wm: @overload def wm_attributes(self, option: Literal["type"], /) -> str: ... + # wm_attributes: Set an attribute (old variant using string that starts with "-") @overload def wm_attributes(self, option: str, /): ... @overload @@ -868,9 +873,11 @@ class Wm: @overload def wm_attributes(self, option: Literal["-type"], value: str, /) -> Literal[""]: ... + # wm_attributes: Set multiple attributes (old variant using strings that start with "-") @overload def wm_attributes(self, option: str, value, /, *__other_option_value_pairs: Any) -> Literal[""]: ... + # wm_attributes: Set an attribute (new variant with kwarg instead of string) if sys.version_info >= (3, 13): if sys.platform == "darwin": @overload