mirror of
https://github.com/hwchase17/langchain.git
synced 2025-11-01 08:41:18 +00:00
chore(cli): fix some DOC rules (preview) (#32839)
Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
e0aaaccb61
commit
20401df25d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user