mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
![]() ## 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 |
||
---|---|---|
.. | ||
resources/test | ||
src | ||
Cargo.toml |