ruff/crates/ruff_linter
Victor Hugo Gomes c9031ce59f
[refurb] Mark autofix as safe only for number literals in FURB116 (#17692)
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary
We can only guarantee the safety of the autofix for number literals, all
other cases may change the runtime behaviour of the program or introduce
a syntax error. For the cases reported in the issue that would result in
a syntax error, I disabled the autofix.

Follow-up of #17661. 

Fixes #16472.
<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan

Snapshot tests.
<!-- How was it tested? -->
2025-05-12 16:08:12 -04:00
..
resources [refurb] Mark autofix as safe only for number literals in FURB116 (#17692) 2025-05-12 16:08:12 -04:00
src [refurb] Mark autofix as safe only for number literals in FURB116 (#17692) 2025-05-12 16:08:12 -04:00
Cargo.toml Bump 0.11.9 (#17986) 2025-05-09 10:43:27 -05:00