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:
Afanti
2025-03-13 23:12:44 +08:00
committed by GitHub
parent 32c95bd847
commit d84569387f
10 changed files with 17 additions and 17 deletions

View File

@@ -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`):