mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-17 01:52:59 +08:00
get_dynamic() on DynamicInput/Output was not doing anything anymore, so removed it
This commit is contained in:
parent
cb582ab299
commit
308ae94c66
@ -868,22 +868,17 @@ class DynamicInput(Input, ABC):
|
|||||||
'''
|
'''
|
||||||
Abstract class for dynamic input registration.
|
Abstract class for dynamic input registration.
|
||||||
'''
|
'''
|
||||||
def get_dynamic(self) -> list[Input]:
|
pass
|
||||||
return []
|
|
||||||
|
|
||||||
|
|
||||||
class DynamicOutput(Output, ABC):
|
class DynamicOutput(Output, ABC):
|
||||||
'''
|
'''
|
||||||
Abstract class for dynamic output registration.
|
Abstract class for dynamic output registration.
|
||||||
'''
|
'''
|
||||||
def __init__(self, id: str=None, display_name: str=None, tooltip: str=None,
|
pass
|
||||||
is_output_list=False):
|
|
||||||
super().__init__(id, display_name, tooltip, is_output_list)
|
|
||||||
|
|
||||||
def get_dynamic(self) -> list[Output]:
|
|
||||||
return []
|
|
||||||
|
|
||||||
def handle_prefix(prefix_list: list | None, id: str | None = None) -> list[str]:
|
def handle_prefix(prefix_list: list[str] | None, id: str | None = None) -> list[str]:
|
||||||
if prefix_list is None:
|
if prefix_list is None:
|
||||||
prefix_list = []
|
prefix_list = []
|
||||||
if id is not None:
|
if id is not None:
|
||||||
@ -977,9 +972,6 @@ class Autogrow(ComfyTypeI):
|
|||||||
"template": self.template.as_dict(),
|
"template": self.template.as_dict(),
|
||||||
})
|
})
|
||||||
|
|
||||||
def get_dynamic(self) -> list[Input]:
|
|
||||||
return self.template.get_all()
|
|
||||||
|
|
||||||
def get_all(self) -> list[Input]:
|
def get_all(self) -> list[Input]:
|
||||||
return [self] + self.template.get_all()
|
return [self] + self.template.get_all()
|
||||||
|
|
||||||
@ -1041,9 +1033,6 @@ class DynamicCombo(ComfyTypeI):
|
|||||||
super().__init__(id, display_name, optional, tooltip, lazy, extra_dict)
|
super().__init__(id, display_name, optional, tooltip, lazy, extra_dict)
|
||||||
self.options = options
|
self.options = options
|
||||||
|
|
||||||
def get_dynamic(self) -> list[Input]:
|
|
||||||
return [input for option in self.options for input in option.inputs]
|
|
||||||
|
|
||||||
def get_all(self) -> list[Input]:
|
def get_all(self) -> list[Input]:
|
||||||
return [self] + [input for option in self.options for input in option.inputs]
|
return [self] + [input for option in self.options for input in option.inputs]
|
||||||
|
|
||||||
@ -1098,9 +1087,6 @@ class DynamicSlot(ComfyTypeI):
|
|||||||
self.force_input = True
|
self.force_input = True
|
||||||
self.slot.force_input = True
|
self.slot.force_input = True
|
||||||
|
|
||||||
def get_dynamic(self) -> list[Input]:
|
|
||||||
return [self.slot] + self.inputs
|
|
||||||
|
|
||||||
def get_all(self) -> list[Input]:
|
def get_all(self) -> list[Input]:
|
||||||
return [self.slot] + self.inputs
|
return [self.slot] + self.inputs
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user