Cooper Lees
Cooper Lees
I don't know if we can always cleanly detect this and if it would be high signal. Someone could also do: ```python bar = None try: from foo import bar...
Sounds reasonable. Unit-tested adding to B017 will be merged.
Yeah, I agree if we can find a way to see the scope of student in the lambda I'd happy take that PR. On the contrary, I do argue tho,...
So are you asking here if we should lint for this? I feel unittests should be finding this one.
I have also personally hit this and would love this added to bugbear. I like the using parens "()" to make this non + concatting explicit, although I would prefer...
PR with suggestions and tests fixed is welcome.
I'm down to add known false positives into the README to help save people time or maybe even allow for someone smarter to come up with a way to handle...
Hi, Thanks for the suggestion. Yes, the find API is not very pythonic, but I understand why it is the way it is. As for the check, I think we...
Ok, so you would like to enforce always using the explicit int comparison of `mystring.find("foo") == 0` and `!=0` to ensure it behaves as most people assume. If that's the...
So this check was added before Data Classes existed. What's a proposed solution here? Want to check for this inheritance and disable the error if that's found? We would need...