ruff
f8061e8b - [`refurb`] Mark the `FURB161` fix unsafe except for integers and booleans (#17240)

Commit
155 days ago
[`refurb`] Mark the `FURB161` fix unsafe except for integers and booleans (#17240) The PR fixes #16457 . Specifically, `FURB161` is marked safe, but the rule generates safe fixes only in specific cases. Therefore, we attempt to mark the fix as unsafe when we are not in one of these cases. For instances, the fix is marked as aunsafe just in case of strings (as pointed out in the issue). Let me know if I should change something. --------- Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
Author
Parents
Loading