From ecffbf29bfac97946097a57ecb815e5af6771831 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 30 Sep 2023 13:53:33 +0200 Subject: [PATCH] Skip vararg/varkw parameters from the config snippet. --- platypush/utils/reflection/_parser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platypush/utils/reflection/_parser.py b/platypush/utils/reflection/_parser.py index 888a2b603c..022db2b632 100644 --- a/platypush/utils/reflection/_parser.py +++ b/platypush/utils/reflection/_parser.py @@ -184,6 +184,11 @@ class DocstringParser: ctx.state = ParseState.PARAM idx = len(ctx.parsed_params) ctx.cur_param = m.group("name") + + # Skip vararg/var keyword parameters + if ctx.cur_param == ctx.spec.varkw or ctx.spec.varargs: + return + ctx.parsed_params[ctx.cur_param] = Parameter( name=ctx.cur_param, required=(