Skip to content

Commit

Permalink
fix(generator): skip VAR_KEYWORD params in GENERATOR
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jul 28, 2023
1 parent a226554 commit 34cc59a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hyfi/composer/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ def generate_hyfi_config(
for i, (key, param) in enumerate(params.items()):
if remove_first_arg and i == 0:
continue
if param.kind == inspect.Parameter.VAR_KEYWORD:
continue
if key in kwargs:
value = kwargs[key]
else:
Expand Down

0 comments on commit 34cc59a

Please sign in to comment.