-
Notifications
You must be signed in to change notification settings - Fork 17
fix ListToAccumulationNode #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
inputs = cls.INPUT_TYPES() | ||
if isinstance(input_types, list): | ||
for input_type in input_types: | ||
responce = validate_individual(input_type, inputs) |
There was a problem hiding this comment.
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.)
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) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) | |
[fix] Copy of #11 with fix included
VariantSupport decorator didn't support nodes with
INPUT_IS_LIST = True