feat: ✨ add support for "*" output types

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
This commit is contained in:
Mel Massadian 2024-04-24 21:13:13 +02:00
parent b1fd26fe9e
commit 73b9096e68
No known key found for this signature in database
GPG Key ID: 1DFF0E9F71C7C85A

View File

@ -454,7 +454,7 @@ def validate_inputs(prompt, item, validated):
o_id = val[0] o_id = val[0]
o_class_type = prompt[o_id]['class_type'] o_class_type = prompt[o_id]['class_type']
r = nodes.NODE_CLASS_MAPPINGS[o_class_type].RETURN_TYPES 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]] received_type = r[val[1]]
details = f"{x}, {received_type} != {type_input}" details = f"{x}, {received_type} != {type_input}"
error = { error = {