Helper function for raising a value error for bad assignment.
(name, var_type, value, values)
| 44 | |
| 45 | |
| 46 | def _parse_fail(name, var_type, value, values): |
| 47 | """Helper function for raising a value error for bad assignment.""" |
| 48 | raise ValueError( |
| 49 | 'Could not parse hparam \'%s\' of type \'%s\' with value \'%s\' in %s' % |
| 50 | (name, var_type.__name__, value, values)) |
| 51 | |
| 52 | |
| 53 | def _reuse_fail(name, values): |
no outgoing calls
no test coverage detected