From 56902f9bf89d70647bc10a89a2b0809c5cd385e0 Mon Sep 17 00:00:00 2001 From: Perry Date: Sat, 20 Dec 2025 21:07:07 -0800 Subject: [PATCH] Add shift operators to Simple Calculator KJ node --- nodes/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/nodes.py b/nodes/nodes.py index 8cf6c1a..95a9164 100644 --- a/nodes/nodes.py +++ b/nodes/nodes.py @@ -2729,7 +2729,7 @@ class SimpleCalculatorKJ: # Allowed operations allowed_operators = {ast.Add: operator.add, ast.Sub: operator.sub, ast.Mult: operator.mul, ast.Div: operator.truediv, - ast.Pow: operator.pow, ast.USub: operator.neg, ast.UAdd: operator.pos, + ast.Pow: operator.pow, ast.USub: operator.neg, ast.UAdd: operator.pos, ast.LShift: operator.lshift, ast.RShift, operator.rshift, } # Allowed functions