mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-07 16:27:05 +08:00
use IO.ANY
This commit is contained in:
parent
a24330717b
commit
5a40a360c4
@ -1,4 +1,5 @@
|
||||
import json
|
||||
from comfy.comfy_types.node_typing import IO
|
||||
|
||||
# Preview Any - original implement from
|
||||
# https://github.com/rgthree/rgthree-comfy/blob/main/py/display_any.py
|
||||
@ -7,7 +8,7 @@ class PreviewAny():
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {"source": ("*", {})},
|
||||
"required": {"source": (IO.ANY, {})},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ()
|
||||
@ -16,10 +17,6 @@ class PreviewAny():
|
||||
|
||||
CATEGORY = "utils"
|
||||
|
||||
@classmethod
|
||||
def VALIDATE_INPUTS(s, input_types):
|
||||
return True
|
||||
|
||||
def main(self, source=None):
|
||||
value = 'None'
|
||||
if isinstance(source, str):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user