summaryrefslogtreecommitdiffstatshomepage
path: root/py/argcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/argcheck.c')
-rw-r--r--py/argcheck.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/argcheck.c b/py/argcheck.c
index bb26bd3aea..8343d7b279 100644
--- a/py/argcheck.c
+++ b/py/argcheck.c
@@ -109,3 +109,10 @@ void mp_arg_parse_all_kw_array(uint n_pos, uint n_kw, const mp_obj_t *args, uint
mp_map_init_fixed_table(&kw_args, n_kw, args + n_pos);
mp_arg_parse_all(n_pos, args, &kw_args, n_allowed, allowed, out_vals);
}
+
+#if MICROPY_CPYTHON_COMPAT
+NORETURN void mp_arg_error_unimpl_kw(void) {
+ nlr_raise(mp_obj_new_exception_msg(&mp_type_NotImplementedError,
+ "keyword argument(s) not yet implemented - use normal args instead"));
+}
+#endif