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
The fix for RUF031 introduces a syntax error when lint.ruff.parenthesize-tuple-in-subscript = true and the subscripted tuple contains a slice.
$ ruff --versionruff 0.5.7
$ cat ruf031.pyx[:,]
$ ruff check --isolated --preview --select RUF031 --config 'lint.ruff.parenthesize-tuple-in-subscript = true' ruf031.py --fixerror: Fix 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=%5BFix%20error%5D...quoting the contents of `ruf031.py`, the rule codes RUF031, along with the `pyproject.toml` settings and executed command, we'd be very appreciative!ruf031.py:1:3: RUF031 Use parentheses for tuples in subscripts. |1 | x[:,] | ^^ RUF031 | = help: Parenthesize the tuple.Found 1 error.[*] 1 fixable with the `--fix` option.
The text was updated successfully, but these errors were encountered:
The fix for RUF031 introduces a syntax error when
lint.ruff.parenthesize-tuple-in-subscript = true
and the subscripted tuple contains a slice.The text was updated successfully, but these errors were encountered: