We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfedd81 commit b051e7dCopy full SHA for b051e7d
1 file changed
py/obj.c
@@ -66,12 +66,7 @@ void mp_obj_print_exception(mp_obj_t exc) {
66
}
67
68
bool mp_obj_is_callable(mp_obj_t o_in) {
69
- if (!MP_OBJ_IS_OBJ(o_in)) {
70
- return false;
71
- } else {
72
- mp_obj_base_t *o = o_in;
73
- return o->type->call != NULL;
74
- }
+ return mp_obj_get_type(o_in)->call != NULL;
75
76
77
machine_int_t mp_obj_hash(mp_obj_t o_in) {
0 commit comments