We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3529f3a + d1860c1 commit db692b2Copy full SHA for db692b2
pyupgrade/_plugins/legacy.py
@@ -64,7 +64,7 @@ def _targets_same(target: ast.AST, yield_value: ast.AST) -> bool:
64
# ignore `ast.Load` / `ast.Store`
65
if _all_isinstance((t1, t2), ast.expr_context):
66
continue
67
- elif type(t1) != type(t2):
+ elif type(t1) is not type(t2):
68
return False
69
elif not _fields_same(t1, t2):
70
0 commit comments