add types to destroy methods (#4902)

This commit is contained in:
Akuli
2021-01-05 17:55:01 +02:00
committed by GitHub
parent 2691d74796
commit 916a3a0392

View File

@@ -223,7 +223,7 @@ class Misc:
master: Optional[Misc]
tk: _tkinter.TkappType
children: Dict[str, Widget]
def destroy(self): ...
def destroy(self) -> None: ...
def deletecommand(self, name): ...
def tk_strictMotif(self, boolean: Optional[Any] = ...): ...
def tk_bisque(self): ...
@@ -773,7 +773,7 @@ class BaseWidget(Misc):
master: Misc
widgetName: Any
def __init__(self, master, widgetName, cnf=..., kw=..., extra=...): ...
def destroy(self): ...
def destroy(self) -> None: ...
# This class represents any widget except Toplevel or Tk.
class Widget(BaseWidget, Pack, Place, Grid):