mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-01-23 20:34:32 +08:00
Add shift operators to Simple Calculator KJ node
This commit is contained in:
parent
ea74a92803
commit
56902f9bf8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user