You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validation code in a Parameter often calls the Parameter's parents validation methods. The Parameter name is hard-coded in the validation error message, which means that users may receive an error message that is a bit confusing as it doesn't mention the type of the invalid Parameter but the type of one of its parents.
This snippet emits ValueError: Tuple parameter 'r' only takes a tuple value, not <class 'str'>. while the Parameter is a Range. Range is indeed a subclass of Tuple.
Validation code in a Parameter often calls the Parameter's parents validation methods. The Parameter name is hard-coded in the validation error message, which means that users may receive an error message that is a bit confusing as it doesn't mention the type of the invalid Parameter but the type of one of its parents.
This snippet emits
ValueError: Tuple parameter 'r' only takes a tuple value, not <class 'str'>.
while the Parameter is aRange
.Range
is indeed a subclass ofTuple
.Substituting the hard-coded Parameter name with
self.__class__.__name__
would probably fix that.The text was updated successfully, but these errors were encountered: