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 924a60c455..40c0cefb7a 100644
--- a/py/argcheck.c
+++ b/py/argcheck.c
@@ -103,3 +103,10 @@ void mp_arg_parse_all(uint n_pos, const mp_obj_t *pos, mp_map_t *kws, uint n_all
nlr_raise(mp_obj_new_exception_msg(&mp_type_TypeError, "extra keyword arguments given"));
}
}
+
+#if MICROPY_CPYTHON_COMPAT
+void mp_arg_error_unimpl_kw() {
+ nlr_raise(mp_obj_new_exception_msg(&mp_type_NotImplementedError,
+ "keyword argument(s) not yet implemented - use normal args instead"));
+}
+#endif