最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

read the docs - How to disable duplicate parameter documentation in SphinxReadTheDocs theme - Stack Overflow

programmeradmin0浏览0评论

When documenting Python code using Sphinx (v8.2.3), the parameters of the class' initializer __init__(self, ...) are documented two times:

  1. in the class' description
  2. in the dunder init method

I consider this redundant information, especially as __init__() is the first method in the class and the information is repeated within a few centimeters on screen.

Question:
How can I disable the parameter documentation in the class description?

Example:

发布评论

评论列表(0)

  1. 暂无评论