Skip to content

Commit a68397d

Browse files
Fix incorrect type check in ListValue validation
Signed-off-by: Ashwin Vaidya <[email protected]>
1 parent 61e49d9 commit a68397d

File tree

1 file changed

+1
-1
lines changed
  • model_api/python/model_api/models

1 file changed

+1
-1
lines changed

model_api/python/model_api/models/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def validate(self, value):
187187
errors = super().validate(value)
188188
if not value:
189189
return errors
190-
if not isinstance(value, tuple | list):
190+
if not isinstance(value, (tuple, list)):
191191
errors.append(
192192
ConfigurableValueError(
193193
f"Incorrect value type - {type(value)}: should be list or tuple",

0 commit comments

Comments
 (0)