We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
flake8
1 parent 2312881 commit 400b75fCopy full SHA for 400b75f
src/fluent_compiler/codegen.py
@@ -675,7 +675,7 @@ def as_ast(self):
675
return ast.Name(id=self.name, ctx=ast.Load(), **DEFAULT_AST_ARGS)
676
677
def __eq__(self, other):
678
- return type(other) == type(self) and other.name == self.name
+ return isinstance(other, type(self)) and other.name == self.name
679
680
def __repr__(self):
681
return f"VariableReference({repr(self.name)})"
0 commit comments