code improve

This commit is contained in:
Terry Jia 2026-03-02 20:56:54 -05:00
parent c39c3682e2
commit 65f2ad7c88

View File

@ -1250,7 +1250,7 @@ class Curve(ComfyTypeIO):
socketless: bool=True, default: list[tuple[float, float]]=None, advanced: bool=None): socketless: bool=True, default: list[tuple[float, float]]=None, advanced: bool=None):
super().__init__(id, display_name, optional, tooltip, None, default, socketless, None, None, None, None, advanced) super().__init__(id, display_name, optional, tooltip, None, default, socketless, None, None, None, None, advanced)
if default is None: if default is None:
self.default = [[0.0, 0.0], [1.0, 1.0]] self.default = [(0.0, 0.0), (1.0, 1.0)]
DYNAMIC_INPUT_LOOKUP: dict[str, Callable[[dict[str, Any], dict[str, Any], tuple[str, dict[str, Any]], str, list[str] | None], None]] = {} DYNAMIC_INPUT_LOOKUP: dict[str, Callable[[dict[str, Any], dict[str, Any], tuple[str, dict[str, Any]], str, list[str] | None], None]] = {}