Skip to content

Commit 400b75f

Browse files
committed
chore: fix flake8 error
1 parent 2312881 commit 400b75f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fluent_compiler/codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ def as_ast(self):
675675
return ast.Name(id=self.name, ctx=ast.Load(), **DEFAULT_AST_ARGS)
676676

677677
def __eq__(self, other):
678-
return type(other) == type(self) and other.name == self.name
678+
return isinstance(other, type(self)) and other.name == self.name
679679

680680
def __repr__(self):
681681
return f"VariableReference({repr(self.name)})"

0 commit comments

Comments
 (0)