ITADN

Improve B018 to detect certain function calls

#546Closedkasium 创建于 2026-02-28
enhancementhelp wanted
K
kasiumcommented
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 条评论