chore: fix typos in utils module (#36668)
* chore: fix typos in utils module * chore: fix typos in utils module * chore: fix typos in utils module * chore: fix typos in utils module * chore: fix typos in utils module * chore: fix typos in utils module
This commit is contained in:
@@ -683,7 +683,7 @@ def replace_default_in_arg_description(description: str, default: Any) -> str:
|
||||
|
||||
Args:
|
||||
description (`str`): The description of an argument in a docstring to process.
|
||||
default (`Any`): The default value that whould be in the docstring of that argument.
|
||||
default (`Any`): The default value that would be in the docstring of that argument.
|
||||
|
||||
Returns:
|
||||
`str`: The description updated with the new default value.
|
||||
@@ -906,7 +906,7 @@ def match_docstring_with_signature(obj: Any) -> Optional[Tuple[str, str]]:
|
||||
|
||||
def fix_docstring(obj: Any, old_doc_args: str, new_doc_args: str):
|
||||
"""
|
||||
Fixes the docstring of an object by replacing its arguments documentaiton by the one matched with the signature.
|
||||
Fixes the docstring of an object by replacing its arguments documentation by the one matched with the signature.
|
||||
|
||||
Args:
|
||||
obj (`Any`):
|
||||
|
||||
Reference in New Issue
Block a user