Skip to content

Commit

Permalink
feat: ✨ add support for "*" output types
Browse files Browse the repository at this point in the history
effectively skipping type checking.
There are already trick to do the same for inputs
using `kwargs`.

There are probably implications I haven't fully thought about and
I didn't test it extensively myself
  • Loading branch information
melMass committed Jun 5, 2024
1 parent b1fd26f commit 73b9096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def validate_inputs(prompt, item, validated):
o_id = val[0]
o_class_type = prompt[o_id]['class_type']
r = nodes.NODE_CLASS_MAPPINGS[o_class_type].RETURN_TYPES
if r[val[1]] != type_input:
if r[val[1]] != "*" and r[val[1]] != type_input:
received_type = r[val[1]]
details = f"{x}, {received_type} != {type_input}"
error = {
Expand Down

0 comments on commit 73b9096

Please sign in to comment.