Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sphinx autoclass 指令生成的输出将 __init__ 的参数添加到类名的末尾。有没有办法告诉狮身人面像排除它们?我需要记录不应显式构造的类,因此 __init__ 参数是内部实现细节,应从文档中省略
要回答我自己的问题,请将 () 添加到类名中,例如
.. autoclass:: MyClass()