From 2ab0cb8cf32260e211e331469ee8fc1ce4ecea83 Mon Sep 17 00:00:00 2001 From: Terry Jia Date: Sat, 14 Feb 2026 20:59:15 -0500 Subject: [PATCH] code improve --- comfy_api/latest/_io.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/comfy_api/latest/_io.py b/comfy_api/latest/_io.py index 79068fca2..ff6c1eb5b 100644 --- a/comfy_api/latest/_io.py +++ b/comfy_api/latest/_io.py @@ -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,