Fix B015 false positive on comparison deep inside expression statement (#616)

This commit is contained in:
Anders Kaseorg
2022-11-05 17:13:22 -07:00
committed by GitHub
parent 22cfd03b13
commit b067b665ff
3 changed files with 12 additions and 10 deletions

View File

@@ -22,3 +22,6 @@ data = [x for x in [1, 2, 3] if x in (1, 2)]
class TestClass:
1 == 1
print(1 == 1)