You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DOCUMENTATION = """
"""
"""Check that raise ... from .. uses a proper exception cause """
class ExceptionSubclass(Exception):
raise IndexError()from ZeroDivisionError
error:
error: Autofix introduced a syntax error. Reverting all changes.
This indicates a bug in `ruff`. If you could open an issue at:
https://github.com/astral-sh/ruff/issues/new?title=%5BAutofix%20error%5D
...quoting the contents of `PY_FILE_TEST_1219302773.py`, the rule codes D210, RSE102, along with the `pyproject.toml` settings and executed command, we'd be very appreciative!
Nice, I assume the issue is that we're changing to raise IndexErrorfromZeroDivisionError. If we remove parens, and there's no whitespace between the () and the form, we need to insert a space.
Ruff 0.0.285 (latest changes from main branch)
file content:
error:
PY_FILE_TEST_1219302773.py.zip
The text was updated successfully, but these errors were encountered: