mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-20 11:31:58 +00:00
docs: format (#28593)
This commit is contained in:
parent
f943205ebf
commit
925ca75ca5
@ -87,14 +87,15 @@ class Beta(BaseAdmonition):
|
|||||||
def setup(app):
|
def setup(app):
|
||||||
app.add_directive("example_links", ExampleLinksDirective)
|
app.add_directive("example_links", ExampleLinksDirective)
|
||||||
app.add_directive("beta", Beta)
|
app.add_directive("beta", Beta)
|
||||||
app.connect('autodoc-skip-member', skip_private_members)
|
app.connect("autodoc-skip-member", skip_private_members)
|
||||||
|
|
||||||
|
|
||||||
def skip_private_members(app, what, name, obj, skip, options):
|
def skip_private_members(app, what, name, obj, skip, options):
|
||||||
if skip:
|
if skip:
|
||||||
return True
|
return True
|
||||||
if hasattr(obj, '__doc__') and obj.__doc__ and ':private:' in obj.__doc__:
|
if hasattr(obj, "__doc__") and obj.__doc__ and ":private:" in obj.__doc__:
|
||||||
return True
|
return True
|
||||||
if name == '__init__' and obj.__objclass__ is object:
|
if name == "__init__" and obj.__objclass__ is object:
|
||||||
# dont document default init
|
# dont document default init
|
||||||
return True
|
return True
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user