mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
add types to destroy methods (#4902)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user