(backend_impl, args)
| 178 | |
| 179 | |
| 180 | def _check_args_backend(backend_impl, args): |
| 181 | is_instance = set(isinstance(arg, backend_impl.__type__) for arg in args) |
| 182 | # check that all arguments matched or not the type |
| 183 | if len(is_instance) == 1: |
| 184 | return is_instance.pop() |
| 185 | |
| 186 | # Otherwise return an error |
| 187 | raise ValueError(str_type_error.format([type(arg) for arg in args])) |
| 188 | |
| 189 | |
| 190 | def get_backend_list(): |