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

@@ -6,7 +6,14 @@ from typing import Optional
def list_packages(*, contains: Optional[str] = None) -> list[str]:
"""List all packages in the langchain repository templates directory."""
"""List all packages in the langchain repository templates directory.
Args:
contains: Optional substring that the package name must contain.
Returns:
A list of package names.
"""
conn = http.client.HTTPSConnection("api.github.com")
try:
headers = {