Skip to content

Type hints for unhandled exceptions code #1476

Answered by erictraut
dineshbvadhia asked this question in Q&A
Discussion options

You must be logged in to vote
from types import TracebackType

def handle_unhandled_exception(
    exc_type: type[BaseException],
    exc_value: BaseException,
    exc_traceback: TracebackType | None,
) -> None:
    ...

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dineshbvadhia
Comment options

You must be logged in to vote
3 replies
@dineshbvadhia
Comment options

@Akuli
Comment options

@dineshbvadhia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants