[ruff
] Fix B004
to skip invalid hasattr
/getattr
calls
#20486
Merged
Loading