diff --git a/stdlib/sys.pyi b/stdlib/sys.pyi index e60a58c02..5ccf9dff7 100644 --- a/stdlib/sys.pyi +++ b/stdlib/sys.pyi @@ -47,7 +47,7 @@ if sys.platform == "win32": dllhandle: int dont_write_bytecode: bool displayhook: Callable[[object], Any] -excepthook: Callable[[Type[BaseException], BaseException, TracebackType], Any] +excepthook: Callable[[Type[BaseException], BaseException, TracebackType | None], Any] exec_prefix: str executable: str float_repr_style: str diff --git a/stdlib/tkinter/__init__.pyi b/stdlib/tkinter/__init__.pyi index b7a5d3a11..9ca63924f 100644 --- a/stdlib/tkinter/__init__.pyi +++ b/stdlib/tkinter/__init__.pyi @@ -610,7 +610,7 @@ class Wm: withdraw = wm_withdraw class _ExceptionReportingCallback(Protocol): - def __call__(self, __exc: Type[BaseException], __val: BaseException, __tb: TracebackType) -> Any: ... + def __call__(self, __exc: Type[BaseException], __val: BaseException, __tb: TracebackType | None) -> Any: ... class Tk(Misc, Wm): master: None