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.
1 parent 3076a77 commit 4fbc698Copy full SHA for 4fbc698
1 file changed
src/bytecode/instr.py
@@ -927,9 +927,9 @@ def __repr__(self) -> str:
927
return "<%s location=%s>" % (self._name, self._location)
928
929
def __eq__(self, other: object) -> bool:
930
- if type(self) is not type(other):
+ if not isinstance(other, BaseInstr):
931
return False
932
- return self._cmp_key() == other._cmp_key() # type: ignore[union-attr]
+ return self._cmp_key() == other._cmp_key()
933
934
# --- Private API
935
0 commit comments