Fix validation for generic type

This commit is contained in:
Jairo Correa 2023-09-21 04:04:08 -03:00
parent 492db2de8d
commit dba493ee59

View File

@ -433,7 +433,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]] != type_input and r[val[1]] != "*" and type_input != "*":
received_type = r[val[1]]
details = f"{x}, {received_type} != {type_input}"
error = {