Renamed IO_V3 to _IO_V3

This commit is contained in:
Jedrzej Kosinski 2025-07-23 15:37:43 -07:00
parent 6adaf6c776
commit ddb84a3991
2 changed files with 4 additions and 8 deletions

View File

@ -140,7 +140,7 @@ def Custom(io_type: str) -> type[ComfyTypeIO]:
... ...
return CustomComfyType return CustomComfyType
class IO_V3: class _IO_V3:
''' '''
Base class for V3 Inputs and Outputs. Base class for V3 Inputs and Outputs.
''' '''
@ -157,7 +157,7 @@ class IO_V3:
def Type(self): def Type(self):
return self.Parent.Type return self.Parent.Type
class InputV3(IO_V3): class InputV3(_IO_V3):
''' '''
Base class for a V3 Input. Base class for a V3 Input.
''' '''
@ -206,7 +206,7 @@ class WidgetInputV3(InputV3):
return self.widget_type if self.widget_type is not None else super().get_io_type() return self.widget_type if self.widget_type is not None else super().get_io_type()
class OutputV3(IO_V3): class OutputV3(_IO_V3):
def __init__(self, id: str=None, display_name: str=None, tooltip: str=None, def __init__(self, id: str=None, display_name: str=None, tooltip: str=None,
is_output_list=False): is_output_list=False):
self.id = id self.id = id

View File

@ -9,12 +9,8 @@ import asyncio
@io.comfytype(io_type="XYZ") @io.comfytype(io_type="XYZ")
class XYZ: class XYZ(io.ComfyTypeIO):
Type = tuple[int,str] Type = tuple[int,str]
class Input(io.InputV3):
...
class Output(io.OutputV3):
...
class V3TestNode(io.ComfyNode): class V3TestNode(io.ComfyNode):