Skip to content

Commit

Permalink
buckification
Browse files Browse the repository at this point in the history
Differential Revision: D43169568

Pull Request resolved: pytorch#692
  • Loading branch information
podtserkovskiy authored Feb 21, 2023
1 parent 9e2197b commit 99ab917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torchx/specs/file_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def get_fn_docstring(fn: Callable[..., object]) -> Tuple[str, Dict[str, str]]:
return default_fn_desc, args_description
docstring = parse(func_description)
for param in docstring.params:
args_description[param.arg_name] = param.description
if param.description is not None:
args_description[param.arg_name] = param.description
short_func_description = docstring.short_description or default_fn_desc
if docstring.long_description:
short_func_description += " ..."
Expand Down

0 comments on commit 99ab917

Please sign in to comment.