ruff/crates/ruff_linter
Igor Drokin dfec94608c
[flake8-bugbear] Mark the fix for unreliable-callable-check as always unsafe (B004) (#20318)
## Summary
Resolves #20282

Makes the rule fix always unsafe, because the replacement may not be
semantically equivalent to the original expression, potentially changing
the behavior of the code.

Updated docstring with examples.

## Test Plan
- Added two tests from issue and regenerated the snapshot

---------

Co-authored-by: Igor Drokin <drokinii1017@gmail.com>
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
2025-09-12 19:27:17 +00:00
..
resources [flake8-bugbear] Mark the fix for unreliable-callable-check as always unsafe (B004) (#20318) 2025-09-12 19:27:17 +00:00
src [flake8-bugbear] Mark the fix for unreliable-callable-check as always unsafe (B004) (#20318) 2025-09-12 19:27:17 +00:00
Cargo.toml Bump 0.13.0 (#20336) 2025-09-10 12:11:22 -04:00