We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sys._current_exceptions
1 parent eb746be commit de2a427Copy full SHA for de2a427
stdlib/sys/__init__.pyi
@@ -354,6 +354,13 @@ else:
354
def _current_frames() -> dict[int, FrameType]: ...
355
def _getframe(depth: int = 0, /) -> FrameType: ...
356
357
+# documented -- see https://docs.python.org/3/library/sys.html#sys._current_exceptions
358
+if sys.version_info >= (3, 12):
359
+ def _current_exceptions() -> dict[int, BaseException | None]: ...
360
+
361
+else:
362
+ def _current_exceptions() -> dict[int, OptExcInfo]: ...
363
364
if sys.version_info >= (3, 12):
365
def _getframemodulename(depth: int = 0) -> str | None: ...
366
0 commit comments