Skip to content

Commit

Permalink
Inject in get_param_values
Browse files Browse the repository at this point in the history
  • Loading branch information
yutaro-oguri committed Aug 31, 2023
1 parent f52dda6 commit 5985372
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kannon/config_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ def inject_config_params(cls) -> None:

@classmethod
def get_param_values(cls, params, args, kwargs): # type: ignore
try:
# if config params can be injected, then inject
cls.inject_config_params()
except Exception:
pass
kwargs_dict = deepcopy(cls.__config_params)
kwargs_dict.update(kwargs)
return super(Wrapped, cls).get_param_values(params, args, kwargs_dict)
Expand Down

0 comments on commit 5985372

Please sign in to comment.