@@ -1252,23 +1252,6 @@ class NodeInfoV1:
12521252 price_badge : dict | None = None
12531253 search_aliases : list [str ]= None
12541254
1255- @dataclass
1256- class NodeInfoV3 :
1257- input : dict = None
1258- output : dict = None
1259- hidden : list [str ]= None
1260- name : str = None
1261- display_name : str = None
1262- description : str = None
1263- python_module : Any = None
1264- category : str = None
1265- output_node : bool = None
1266- deprecated : bool = None
1267- experimental : bool = None
1268- dev_only : bool = None
1269- api_node : bool = None
1270- price_badge : dict | None = None
1271-
12721255
12731256@dataclass
12741257class PriceBadgeDepends :
@@ -1497,40 +1480,6 @@ def get_v1_info(self, cls) -> NodeInfoV1:
14971480 )
14981481 return info
14991482
1500-
1501- def get_v3_info (self , cls ) -> NodeInfoV3 :
1502- input_dict = {}
1503- output_dict = {}
1504- hidden_list = []
1505- # TODO: make sure dynamic types will be handled correctly
1506- if self .inputs :
1507- for input in self .inputs :
1508- add_to_dict_v3 (input , input_dict )
1509- if self .outputs :
1510- for output in self .outputs :
1511- add_to_dict_v3 (output , output_dict )
1512- if self .hidden :
1513- for hidden in self .hidden :
1514- hidden_list .append (hidden .value )
1515-
1516- info = NodeInfoV3 (
1517- input = input_dict ,
1518- output = output_dict ,
1519- hidden = hidden_list ,
1520- name = self .node_id ,
1521- display_name = self .display_name ,
1522- description = self .description ,
1523- category = self .category ,
1524- output_node = self .is_output_node ,
1525- deprecated = self .is_deprecated ,
1526- experimental = self .is_experimental ,
1527- dev_only = self .is_dev_only ,
1528- api_node = self .is_api_node ,
1529- python_module = getattr (cls , "RELATIVE_PYTHON_MODULE" , "nodes" ),
1530- price_badge = self .price_badge .as_dict (self .inputs ) if self .price_badge is not None else None ,
1531- )
1532- return info
1533-
15341483def get_finalized_class_inputs (d : dict [str , Any ], live_inputs : dict [str , Any ], include_hidden = False ) -> tuple [dict [str , Any ], V3Data ]:
15351484 out_dict = {
15361485 "required" : {},
@@ -1585,9 +1534,6 @@ def add_to_dict_v1(i: Input, d: dict):
15851534 as_dict .pop ("optional" , None )
15861535 d .setdefault (key , {})[i .id ] = (i .get_io_type (), as_dict )
15871536
1588- def add_to_dict_v3 (io : Input | Output , d : dict ):
1589- d [io .id ] = (io .get_io_type (), io .as_dict ())
1590-
15911537class DynamicPathsDefaultValue :
15921538 EMPTY_DICT = "empty_dict"
15931539
@@ -1748,13 +1694,6 @@ def PREPARE_CLASS_CLONE(cls, v3_data: V3Data | None) -> type[ComfyNode]:
17481694 # set hidden
17491695 type_clone .hidden = HiddenHolder .from_v3_data (v3_data )
17501696 return type_clone
1751-
1752- @final
1753- @classmethod
1754- def GET_NODE_INFO_V3 (cls ) -> dict [str , Any ]:
1755- schema = cls .GET_SCHEMA ()
1756- info = schema .get_v3_info (cls )
1757- return asdict (info )
17581697 #############################################
17591698 # V1 Backwards Compatibility code
17601699 #--------------------------------------------
@@ -2107,12 +2046,10 @@ def as_dict(self) -> dict:
21072046 "HiddenHolder" ,
21082047 "Hidden" ,
21092048 "NodeInfoV1" ,
2110- "NodeInfoV3" ,
21112049 "Schema" ,
21122050 "ComfyNode" ,
21132051 "NodeOutput" ,
21142052 "add_to_dict_v1" ,
2115- "add_to_dict_v3" ,
21162053 "V3Data" ,
21172054 "ImageCompare" ,
21182055 "PriceBadgeDepends" ,
0 commit comments