fix!: Renamed BOOL type to BOOLEAN to match ComfyUI itself

This commit is contained in:
Evan Spearman
2024-09-02 11:09:05 -05:00
parent 4f02c591c7
commit bbcd945912
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
from typing import Any, Callable, Mapping
DEFAULT_BOOL = ("BOOL", {"default": False})
DEFAULT_BOOL = ("BOOLEAN", {"default": False})
BOOL_UNARY_OPERATIONS: Mapping[str, Callable[[bool], bool]] = {
@@ -26,7 +26,7 @@ class BoolUnaryOperation:
"required": {"op": (list(BOOL_UNARY_OPERATIONS.keys()),), "a": DEFAULT_BOOL}
}
RETURN_TYPES = ("BOOL",)
RETURN_TYPES = ("BOOLEAN",)
FUNCTION = "op"
CATEGORY = "math/bool"
@@ -45,7 +45,7 @@ class BoolBinaryOperation:
}
}
RETURN_TYPES = ("BOOL",)
RETURN_TYPES = ("BOOLEAN",)
FUNCTION = "op"
CATEGORY = "math/bool"
+2 -2
View File
@@ -7,7 +7,7 @@ from .number import number
class BoolToInt:
@classmethod
def INPUT_TYPES(cls) -> Mapping[str, Any]:
return {"required": {"a": ("BOOL", {"default": False})}}
return {"required": {"a": ("BOOLEAN", {"default": False})}}
RETURN_TYPES = ("INT",)
FUNCTION = "op"
@@ -22,7 +22,7 @@ class IntToBool:
def INPUT_TYPES(cls) -> Mapping[str, Any]:
return {"required": {"a": ("INT", {"default": 0})}}
RETURN_TYPES = ("BOOL",)
RETURN_TYPES = ("BOOLEAN",)
FUNCTION = "op"
CATEGORY = "math/conversion"
+2 -2
View File
@@ -105,7 +105,7 @@ class FloatUnaryCondition:
}
}
RETURN_TYPES = ("BOOL",)
RETURN_TYPES = ("BOOLEAN",)
FUNCTION = "op"
CATEGORY = "math/float"
@@ -143,7 +143,7 @@ class FloatBinaryCondition:
}
}
RETURN_TYPES = ("BOOL",)
RETURN_TYPES = ("BOOLEAN",)
FUNCTION = "op"
CATEGORY = "math/float"