tkinter.Tk.eval self fix (#5023)

Fixes #5019
This commit is contained in:
Akuli
2021-02-15 17:52:06 +02:00
committed by GitHub
parent 0b1cd59896
commit 903f74a68e
2 changed files with 2 additions and 1 deletions

View File

@@ -645,7 +645,7 @@ class Tk(Misc, Wm):
# Tk has __getattr__ so that tk_instance.foo falls back to tk_instance.tk.foo
# Please keep in sync with _tkinter.TkappType
call: Callable[..., Any]
eval: Callable[[str], str]
def eval(self, __code: str) -> str: ...
adderrorinfo: Any
createcommand: Any
createfilehandler: Any

View File

@@ -382,6 +382,7 @@ threading.Thread.__init__
timeit.main
tkinter.Misc.grid_propagate
tkinter.Misc.pack_propagate
tkinter.Tk.eval # from __getattr__
tkinter.Tk.report_callback_exception # A bit of a lie, since it's actually a method, but typing it as an attribute allows it to be assigned to
tkinter.Wm.wm_iconphoto # Default value of argument can't be used without runtime error
tkinter.font.Font.__getitem__ # Argument name differs (doesn't matter for __dunder__ methods)