From e873daf79d4f8bec3dad2cb0fe7baeb77113eefe Mon Sep 17 00:00:00 2001 From: Ong Jai Sheng Date: Sat, 29 Nov 2025 15:40:08 -0500 Subject: [PATCH] Change return value for Ren() case to None Error on line 269 of test.py expects None for a Ren(), but Ren() case in runtime.py is returning an empty tuple '()'. --- stimpl/runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stimpl/runtime.py b/stimpl/runtime.py index 69910c8..e78736a 100644 --- a/stimpl/runtime.py +++ b/stimpl/runtime.py @@ -50,7 +50,7 @@ def __repr__(self) -> str: def evaluate(expression: Expr, state: State) -> Tuple[Optional[Any], Type, State]: match expression: case Ren(): - return ((), Unit(), state) + return (None, Unit(), state) case IntLiteral(literal=l): return (l, Integer(), state)