Skip to content

Commit 373c4e5

Browse files
authored
traceback can be None in sys.excepthook (#6133)
1 parent 3c58736 commit 373c4e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/sys.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if sys.platform == "win32":
4747
dllhandle: int
4848
dont_write_bytecode: bool
4949
displayhook: Callable[[object], Any]
50-
excepthook: Callable[[Type[BaseException], BaseException, TracebackType], Any]
50+
excepthook: Callable[[Type[BaseException], BaseException, TracebackType | None], Any]
5151
exec_prefix: str
5252
executable: str
5353
float_repr_style: str

stdlib/tkinter/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ class Wm:
610610
withdraw = wm_withdraw
611611

612612
class _ExceptionReportingCallback(Protocol):
613-
def __call__(self, __exc: Type[BaseException], __val: BaseException, __tb: TracebackType) -> Any: ...
613+
def __call__(self, __exc: Type[BaseException], __val: BaseException, __tb: TracebackType | None) -> Any: ...
614614

615615
class Tk(Misc, Wm):
616616
master: None

0 commit comments

Comments
 (0)