Skip to content

Commit

Permalink
infra: more rst (#28305)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Nov 23, 2024
1 parent 25a636c commit 39fd0fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/api_reference/create_api_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,11 @@ def _package_namespace(package_name: str) -> str:
Returns:
modified package_name: Can be either "langchain" or "langchain_{package_name}"
"""
return (
package_name
if package_name == "langchain"
else f"langchain_{package_name.replace('-', '_')}"
)
if package_name == "langchain":
return "langchain"
if package_name == "standard-tests":
return "langchain_tests"
return f"langchain_{package_name.replace('-', '_')}"


def _package_dir(package_name: str = "langchain") -> Path:
Expand Down

0 comments on commit 39fd0fd

Please sign in to comment.