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.06k stars 104 forks source link

B909 improvements #460

Closed mimre25 closed 7 months ago

mimre25 commented 7 months ago

image

ahh... nothing better than the classic "next week" that turns into a month :sweat_smile:

This implements all improvements listed in #454.

I've implemented a rather "simple" check for unconditional breaks. I believe if we want to catch all scenarios, we'll eventually end up with the reachability problem, at least it feels like we're getting close to it.