From 73b9096e68c15af3ad6f7dd4840d1d6b9c460527 Mon Sep 17 00:00:00 2001 From: Mel Massadian Date: Wed, 24 Apr 2024 21:13:13 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20add=20support=20for=20"*"?= =?UTF-8?q?=20output=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- execution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution.py b/execution.py index 76225a9623d..687a80e9c9e 100644 --- a/execution.py +++ b/execution.py @@ -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 = {