admin 管理员组

文章数量: 1086019

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:

本文标签: read the docsHow to disable duplicate parameter documentation in SphinxReadTheDocs themeStack Overflow