Interpreter fix: type evaluation

This commit is contained in:
Cormac Shannon
2025-04-16 01:46:17 +01:00
parent e51a9b476c
commit b819398019

View File

@@ -19,7 +19,7 @@ OPCODE_ERROR_ILLEGAL = (
def opcode(opcode: Operation):
assert type(opcode) == Operation, OPCODE_ERROR_TYPE_CHECK
assert type(opcode) is Operation, OPCODE_ERROR_TYPE_CHECK
def _helper(func: Callable):
setattr(func, OPCODE_HEADER, opcode)