Skip to content

Conversation

Robonau
Copy link

@Robonau Robonau commented Sep 28, 2024

VariantSupport decorator didn't support nodes with INPUT_IS_LIST = True

inputs = cls.INPUT_TYPES()
if isinstance(input_types, list):
for input_type in input_types:
responce = validate_individual(input_type, inputs)
Copy link
Contributor

@guill guill Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you fix the typo responce -> response? (I tried to change it myself, but it looks like the option for allowing maintainers to edit this PR was turned off.)

Comment on lines +49 to +59
def validate_inputs(input_types):
inputs = cls.INPUT_TYPES()
if isinstance(input_types, list):
for input_type in input_types:
responce = validate_individual(input_type, inputs)
if isinstance(responce, str):
return responce
return True
else:
return validate_individual(input_types, inputs)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def validate_inputs(input_types):
inputs = cls.INPUT_TYPES()
if isinstance(input_types, list):
for input_type in input_types:
responce = validate_individual(input_type, inputs)
if isinstance(responce, str):
return responce
return True
else:
return validate_individual(input_types, inputs)
def validate_inputs(input_types):
inputs = cls.INPUT_TYPES()
if isinstance(input_types, list):
for input_type in input_types:
response = validate_individual(input_type, inputs)
if isinstance(response, str):
return response
return True
else:
return validate_individual(input_types, inputs)

guill added a commit that referenced this pull request Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants