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

B902: Add exceptions for standard library metaclasses #415

Closed henzef closed 7 months ago

henzef commented 10 months ago

I faced a false positive when deriving my metaclass from ABCMeta, which should be fixed with this commit. I also added EnumMeta to this list, because it was the only other public metaclass in the standard library.

henzef commented 8 months ago

I rebased the commit to the latest main branch in the hope that it would retrigger the CI runs, but that didn't work. Now I can no longer see the original CI results :(

EDIT: nvmd, I fixed it