We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f652a89 commit 7df21c9Copy full SHA for 7df21c9
py/runtime.c
@@ -310,7 +310,7 @@ mp_obj_t mp_unary_op(mp_unary_op_t op, mp_obj_t arg) {
310
}
311
#else
312
if (op == MP_UNARY_OP_INT) {
313
- mp_raise_TypeError_varg(MP_ERROR_TEXT("can't convert %q to int"), mp_obj_get_type_qstr(arg));
+ mp_raise_TypeError_varg(MP_ERROR_TEXT("can't convert %q to %q"), mp_obj_get_type_qstr(arg), MP_QSTR_int);
314
} else {
315
mp_raise_TypeError_varg(MP_ERROR_TEXT("unsupported type for %q: '%q'"),
316
mp_unary_op_method_name[op], mp_obj_get_type_qstr(arg));
0 commit comments