mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-20 19:42:59 +08:00
satisfy ruff
This commit is contained in:
parent
e28063811f
commit
712e61d535
@ -185,7 +185,7 @@ class Input(_IO_V3):
|
|||||||
|
|
||||||
def get_io_type(self):
|
def get_io_type(self):
|
||||||
return _StringIOType(self.io_type)
|
return _StringIOType(self.io_type)
|
||||||
|
|
||||||
def get_all(self) -> list[Input]:
|
def get_all(self) -> list[Input]:
|
||||||
return [self]
|
return [self]
|
||||||
|
|
||||||
@ -905,7 +905,7 @@ class Autogrow(ComfyTypeI):
|
|||||||
class TemplateNames(_AutogrowTemplate):
|
class TemplateNames(_AutogrowTemplate):
|
||||||
def __init__(self, input: Input, names: list[str], min: int=1):
|
def __init__(self, input: Input, names: list[str], min: int=1):
|
||||||
super().__init__(input)
|
super().__init__(input)
|
||||||
self.names = names[:Autogrow._MaxNames]
|
self.names = names[:Autogrow._MaxNames]
|
||||||
assert(min >= 1)
|
assert(min >= 1)
|
||||||
self.min = min
|
self.min = min
|
||||||
self._create_cached_inputs()
|
self._create_cached_inputs()
|
||||||
@ -994,7 +994,7 @@ class DynamicCombo(ComfyTypeI):
|
|||||||
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],
|
||||||
})
|
})
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
# make sure all nested inputs are validated
|
# make sure all nested inputs are validated
|
||||||
for option in self.options:
|
for option in self.options:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user