diff --git a/stdlib/3/tkinter/__init__.pyi b/stdlib/3/tkinter/__init__.pyi index f7f7f8cf061d..6098bf3320a7 100644 --- a/stdlib/3/tkinter/__init__.pyi +++ b/stdlib/3/tkinter/__init__.pyi @@ -1,4 +1,5 @@ -from typing import Any +from types import TracebackType +from typing import Any, Optional, Dict, Callable, Type from tkinter.constants import * # noqa: F403 TclError = ... # type: Any @@ -275,15 +276,16 @@ class Wm: withdraw = ... # type: Any class Tk(Misc, Wm): - master = ... # type: Any - children = ... # type: Any - tk = ... # type: Any - def __init__(self, screenName=None, baseName=None, className: str = ..., useTk=1, sync=0, use=None) -> None: ... - def loadtk(self): ... - def destroy(self): ... - def readprofile(self, baseName, className): ... - def report_callback_exception(self, exc, val, tb): ... - def __getattr__(self, attr): ... + master: Optional[Any] + children: Dict[str, Any] + tk: Any + def __init__(self, screenName: Optional[str] = ..., baseName: Optional[str] = ..., className: str = ..., useTk: bool = ..., + sync: bool = ..., use: Optional[str] = ...) -> None: ... + def loadtk(self) -> None: ... + def destroy(self) -> None: ... + def readprofile(self, baseName: str, className: str) -> None: ... + report_callback_exception: Callable[[Type[BaseException], BaseException, TracebackType], Any] + def __getattr__(self, attr: str) -> Any: ... def Tcl(screenName=None, baseName=None, className: str = ..., useTk=0): ...