From 5b36051f7719ac69b67c7e2c909a25f88d4ddf11 Mon Sep 17 00:00:00 2001 From: Christopher Head Date: Sat, 6 Jun 2020 14:41:42 -0700 Subject: [PATCH] tkinter: fix variable parameter to wait_variable (#4194) The tkinter `wait_variable` function can be called with either the name of a variable (a `str`) or an actual variable object (a `Variable`). --- stdlib/3/tkinter/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/tkinter/__init__.pyi b/stdlib/3/tkinter/__init__.pyi index 9f2acfa46..e90a988b2 100644 --- a/stdlib/3/tkinter/__init__.pyi +++ b/stdlib/3/tkinter/__init__.pyi @@ -63,7 +63,7 @@ class Misc: def tk_bisque(self): ... def tk_setPalette(self, *args, **kw): ... def tk_menuBar(self, *args): ... - def wait_variable(self, name: str = ...): ... + def wait_variable(self, name: Union[str, Variable] = ...): ... waitvar: Any def wait_window(self, window: Optional[Any] = ...): ... def wait_visibility(self, window: Optional[Any] = ...): ...