Both the errors raised in type_cast_value should be in __init__ instead. The composite error should be removed from type_cast_value, it makes no sense at runtime. Both places that value is iterated in type_cast_value should raise a BadParameter error instead of TypeError.
Originally posted by @davidism in #1805 (comment)
Both the errors raised in
type_cast_valueshould be in__init__instead. The composite error should be removed fromtype_cast_value, it makes no sense at runtime. Both places thatvalueis iterated intype_cast_valueshould raise aBadParametererror instead ofTypeError.Originally posted by @davidism in #1805 (comment)