forked from platypush/platypush
Skip vararg/varkw parameters from the config snippet.
This commit is contained in:
parent
acb40bd5fd
commit
ecffbf29bf
1 changed files with 5 additions and 0 deletions
|
@ -184,6 +184,11 @@ class DocstringParser:
|
||||||
ctx.state = ParseState.PARAM
|
ctx.state = ParseState.PARAM
|
||||||
idx = len(ctx.parsed_params)
|
idx = len(ctx.parsed_params)
|
||||||
ctx.cur_param = m.group("name")
|
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(
|
ctx.parsed_params[ctx.cur_param] = Parameter(
|
||||||
name=ctx.cur_param,
|
name=ctx.cur_param,
|
||||||
required=(
|
required=(
|
||||||
|
|
Loading…
Reference in a new issue