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