From b819398019ac215420a95d6fbb554ce2926d3b5e Mon Sep 17 00:00:00 2001 From: Cormac Shannon Date: Wed, 16 Apr 2025 01:46:17 +0100 Subject: [PATCH] Interpreter fix: type evaluation --- src/interpreter/__interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter/__interpreter.py b/src/interpreter/__interpreter.py index 735a925..69c1e1c 100644 --- a/src/interpreter/__interpreter.py +++ b/src/interpreter/__interpreter.py @@ -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)