code improve

This commit is contained in:
Terry Jia
2026-02-14 20:59:15 -05:00
parent e1f5085ed0
commit 2ab0cb8cf3

View File

@@ -1205,7 +1205,12 @@ class Color(ComfyTypeIO):
@comfytype(io_type="BOUNDING_BOX")
class BoundingBox(ComfyTypeIO):
Type = dict
class BoundingBoxDict(TypedDict):
x: int
y: int
width: int
height: int
Type = BoundingBoxDict
class Input(WidgetInput):
def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str=None,