Summary
The fix for native-literals (UP018) can introduce a syntax error when the argument contains a newline between a unary + or - and a number literal. It should wrap the expression with parentheses as needed to avoid the error.
$ cat >up018.py <<'# EOF'
int(-
1)
# EOF
$ ruff --isolated check up018.py --select UP018 --diff 2>&1 | grep error:
error: Fix introduced a syntax error. Reverting all changes.
Version
ruff 0.11.2 (4773878 2025-03-21)