From ea700f9c5a29604d125854590f173d3a71adcbe9 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 26 Jan 2026 15:19:37 +0100 Subject: [PATCH] fix: ast.Num to ast.Constant for Python 3.14 compat --- misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc.py b/misc.py index 9a0670e..8683bd9 100644 --- a/misc.py +++ b/misc.py @@ -192,8 +192,8 @@ def execute(self, value, a = 0.0, b = 0.0, c = 0.0, d = 0.0): } def eval_(node): - if isinstance(node, ast.Num): # number - return node.n + if isinstance(node, ast.Constant): # number + return node.value elif isinstance(node, ast.Name): # variable if node.id == "a": return a @@ -571,4 +571,4 @@ def tensorShape(tensor): "SimpleMathPercent+": "🔧 Simple Math Percent", "SimpleMathSlider+": "🔧 Simple Math Slider", "SimpleMathSliderLowRes+": "🔧 Simple Math Slider low-res", -} \ No newline at end of file +}