ruff
f012ed2d - Add autofix for B004 (#5788)

Commit
2 years ago
Add autofix for B004 (#5788) ## Summary Adds autofix for `hasattr` case of B004. I don't think it's safe (or simple) to implement it for the `getattr` case because, inter alia, calling `getattr` may have side effects. Fixes #3545 ## Test Plan Existing tests were sufficient. Updated snapshots
Author
Parents
Loading