Skip to content

Commit

Permalink
enable infer param description from_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
phatvo9 committed Nov 30, 2023
1 parent e679635 commit c9953ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def from_kwargs(cls, **kwargs):
_type = InferParamType.NUMBER
else:
raise TypeError(f"Unsupported type {type(v)} of argument {k}, support {InferParamType}")
param = InferParam(path=k, field_type=_type, default_value=v, description="")
param = InferParam(path=k, field_type=_type, default_value=v, description=k)
params.append(param)

return cls(params=params)
Expand Down

0 comments on commit c9953ed

Please sign in to comment.