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 unnecessary-cast-to-int (RUF046) can crash Ruff in version 0.8.5 or change behavior when the cast expression contains a newline.
Here is a crash:
$ cat ruf046_1.pyint(1& 1)
$ ruff check --isolated --preview --select RUF046 ruf046_1.py --differror: 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 `ruf046_1.py`, the rule codes RUF046, along with the `pyproject.toml` settings and executed command, we'd be very appreciative!
The fix for
unnecessary-cast-to-int
(RUF046) can crash Ruff in version 0.8.5 or change behavior when the cast expression contains a newline.Here is a crash:
Here is a syntax error:
Here is a runtime behavior change:
The text was updated successfully, but these errors were encountered: