PyCQA / flake8-bugbear

A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.
MIT License
1.05k stars 103 forks source link

Remove decorators named validator and root_validator from B902 checks #459

Closed natemcmaster closed 5 months ago

natemcmaster commented 5 months ago

What

This removes methods named validator and root_validator from the B902 check

Why

Fixes https://github.com/PyCQA/flake8-bugbear/issues/413

Removes false positives for common cases, like using attrs validators

Testing

ran tox and all tests are passing