mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-17 18:23:59 +00:00
Fix API reference docs (#9321)
Do not document members nested within any private component
This commit is contained in:
parent
84a97d55e1
commit
090411842e
@ -150,7 +150,8 @@ def _load_package_modules(
|
|||||||
|
|
||||||
relative_module_name = file_path.relative_to(package_path)
|
relative_module_name = file_path.relative_to(package_path)
|
||||||
|
|
||||||
if relative_module_name.name.startswith("_"):
|
# Skip if any module part starts with an underscore
|
||||||
|
if any(part.startswith("_") for part in relative_module_name.parts):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Get the full namespace of the module
|
# Get the full namespace of the module
|
||||||
|
Loading…
Reference in New Issue
Block a user