如何在python中添加导入库的sphinx文档?
我有一个python脚本“webaton.py”,它导入selenium 我在webaton.py中为我自己的类中的方法设置了doc字符串,我使用如何在python中添加导入库的sphinx文档?,python,selenium,python-sphinx,autodoc,Python,Selenium,Python Sphinx,Autodoc,我有一个python脚本“webaton.py”,它导入selenium 我在webaton.py中为我自己的类中的方法设置了doc字符串,我使用setattr()method将selenium的一些方法设置为类中的方法 生成文档时,我没有得到selenium驱动程序方法的docstring,我使用setattr()将其设置为自己类的函数 如何将这些外部模块的docstring包含为类方法的docstring?如果不是的话,至少应该包括我使用的selenium中方法的文档 我已经试过了,但是它没
setattr()
method将selenium的一些方法设置为类中的方法
生成文档时,我没有得到selenium驱动程序方法的docstring,我使用setattr()
将其设置为自己类的函数
如何将这些外部模块的docstring包含为类方法的docstring?如果不是的话,至少应该包括我使用的selenium中方法的文档
我已经试过了,但是它没有显示selenium库中的文档(显示为空白)。
另外,我需要的docstring在selenium.webdriver.Chrome
类中
.. automodule:: webaton
:members: Browser
:undoc-members:
:show-inheritance:
.. automodule:: selenium
:members:
是否有任何错误消息?没有错误消息,只是没有显示seleniumPlease提供的文档。