Skip to content

Commit e8d4074

Browse files
committed
Add an AnyTypeTestNode
1 parent 0958579 commit e8d4074

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

comfy_extras/nodes_logic.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,21 @@ def define_schema(cls):
234234
def execute(cls, combo: io.Combo.Type, combo2: io.Combo.Type) -> io.NodeOutput:
235235
return io.NodeOutput(combo, combo2)
236236

237+
class AnyTypeTestNode(io.ComfyNode):
238+
@classmethod
239+
def define_schema(cls):
240+
return io.Schema(
241+
node_id="AnyNodeTestNode",
242+
display_name="AnyNodeTest",
243+
category="logic",
244+
inputs=[io.AnyType.Input("any")],
245+
outputs=[io.AnyType.Output()],
246+
)
247+
248+
@classmethod
249+
def execute(cls, any: io.AnyType.Type) -> io.NodeOutput:
250+
return io.NodeOutput(any)
251+
237252
class LogicExtension(ComfyExtension):
238253
@override
239254
async def get_node_list(self) -> list[type[io.ComfyNode]]:
@@ -246,6 +261,7 @@ async def get_node_list(self) -> list[type[io.ComfyNode]]:
246261
AutogrowPrefixTestNode,
247262
ComboOutputTestNode,
248263
MatchTypeTestNode,
264+
AnyTypeTestNode,
249265
]
250266

251267
async def comfy_entrypoint() -> LogicExtension:

0 commit comments

Comments
 (0)