From 1526e2c18a64b12356a8e932342ca6f1cdbe2b68 Mon Sep 17 00:00:00 2001 From: cubiq Date: Fri, 16 Aug 2024 09:57:27 +0200 Subject: [PATCH] comfy update broke something... fix #70 --- misc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/misc.py b/misc.py index 7ef8b83..a7313c4 100644 --- a/misc.py +++ b/misc.py @@ -11,8 +11,8 @@ class SimpleMath: def INPUT_TYPES(s): return { "optional": { - "a": ("INT,FLOAT", { "default": 0.0, "step": 0.1 }), - "b": ("INT,FLOAT", { "default": 0.0, "step": 0.1 }), + "a": (any, { "default": 0.0 }), + "b": (any, { "default": 0.0 }), }, "required": { "value": ("STRING", { "multiline": False, "default": "" }), @@ -27,6 +27,9 @@ class SimpleMath: import ast import operator as op + a = float(a) + b = float(b) + operators = { ast.Add: op.add, ast.Sub: op.sub,