Interpreter fix: type evaluation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user