mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Make sys.UnraisableHookArgs a Protocol (#10227)
This commit is contained in:
@@ -321,7 +321,7 @@ if sys.version_info < (3, 9):
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
# Doesn't exist at runtime, but exported in the stubs so pytest etc. can annotate their code more easily.
|
||||
class UnraisableHookArgs:
|
||||
class UnraisableHookArgs(Protocol):
|
||||
exc_type: type[BaseException]
|
||||
exc_value: BaseException | None
|
||||
exc_traceback: TracebackType | None
|
||||
|
||||
Reference in New Issue
Block a user