mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 23:29:12 +08:00
tkinter: Use a TypeVarTuple in .after() and .after_idle() methods (#11014)
This commit is contained in:
1 parent
a08d2d5d66
commit
51ec2f0900
2 files changed
+13
-3
No files matched your search
@@ -12,3 +12,11 @@ def custom_handler(exc: type[BaseException], val: BaseException, tb: types.Trace
|
||||
root = tkinter.Tk()
|
||||
root.report_callback_exception = traceback.print_exception
|
||||
root.report_callback_exception = custom_handler
|
||||
|
||||
|
||||
def foo(x: int, y: str) -> None:
|
||||
pass
|
||||
|
||||
|
||||
root.after(1000, foo, 10, "lol")
|
||||
root.after(1000, foo, 10, 10) # type: ignore
|
||||
Reference in new issue
Block a user