We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
except
from typing import Generic, TypeVar T = TypeVar("T") class Foo(Exception, Generic[T]): ... try: raise Foo except Foo[int]: # no error, crashes at runtime ...
playground
this should be a type error because it fails at runtime with the following exception:
TypeError: catching classes that do not inherit from BaseException is not allowed
The text was updated successfully, but these errors were encountered:
No branches or pull requests
playground
this should be a type error because it fails at runtime with the following exception:
The text was updated successfully, but these errors were encountered: