Add many missing tkinter type annotations (#6002)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Screwtapello
2021-09-12 18:42:12 +10:00
committed by GitHub
parent 8576b344b8
commit 4c6e98ed0c
4 changed files with 92 additions and 33 deletions

View File

@@ -190,6 +190,8 @@ threading.Condition.release # Condition functions are exported in __init__
threading.Lock # A factory function that returns 'most efficient lock'. Marking it as a function will make it harder for users to mark the Lock type.
tkinter.Misc.grid_propagate # The noarg placeholder is a set value list
tkinter.Misc.pack_propagate # The noarg placeholder is a set value list
tkinter.Misc.grid_columnconfigure # an empty dict literal is actually a valid default for a TypedDict(total=False) parameter
tkinter.Misc.grid_rowconfigure # an empty dict literal is actually a valid default for a TypedDict(total=False) parameter
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