Improve B018 to detect certain function calls
enhancementhelp wanted
It would be great if B018 (find useless expression) could also check for function calls like
```py
isinstance(foo, Foo)
```
which has e.g. a missing assert and should be written like
```py
assert isinstance(foo, Foo)
```
I'm happy to take a try to implement this
关闭于 2026-03-03 1 条评论