Similar to what we did for raise <CURSOR> in astral-sh/ruff#21571:
- The type of a symbol after
except must be assignable to type[BaseException] | tuple[type[BaseException], ...]
- The type of a symbol after
raise <EXPR> from must be assignable to BaseException | type[BaseException] | None