chore(cli): fix some DOC rules (preview) (#32839)

Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
Christophe Bornet
2025-09-08 16:36:22 +02:00
committed by GitHub
parent e0aaaccb61
commit 20401df25d
10 changed files with 218 additions and 22 deletions

View File

@@ -4,7 +4,15 @@ from pathlib import Path
def find_and_replace(source: str, replacements: dict[str, str]) -> str:
"""Find and replace text in a string."""
"""Find and replace text in a string.
Args:
source: The source string.
replacements: A dictionary of `{find: replace}` pairs.
Returns:
The modified string.
"""
rtn = source
# replace keys in deterministic alphabetical order