Add get_dynamic function, not yet filled out correctly

This commit is contained in:
Jedrzej Kosinski 2025-11-12 23:24:39 -08:00
parent e3ba819d2c
commit 59381ecbd2

View File

@ -890,6 +890,9 @@ class DynamicCombo(ComfyTypeI):
super().__init__(id) super().__init__(id)
self.options = options self.options = options
def get_dynamic(self) -> list[Input]:
return [self]
def as_dict(self): def as_dict(self):
return super().as_dict() | prune_dict({ return super().as_dict() | prune_dict({
"options": [o.as_dict() for o in self.options], "options": [o.as_dict() for o in self.options],