Bump version to 0.3.0 due to breaking changes in this PR

Update tests
This commit is contained in:
StableLlama
2025-05-18 00:38:17 +02:00
parent b8d2062e75
commit 334d693eff
13 changed files with 797 additions and 53 deletions
+2
View File
@@ -149,6 +149,8 @@ class FloatDivideSafe(ComfyNodeABC):
def divide(self, float1: float, float2: float) -> tuple[float]:
if float2 == 0.0:
if float1 == 0.0:
return (float('nan'),)
return (float('inf') if float1 > 0 else float('-inf'),)
return (float1 / float2,)