简体   繁体   English

Pdoc 向每个枚举变量添加类信息

[英]Pdoc adds class info to every enum variable

I don't know what exactly is going on, I don't have that great of an understanding of Pdoc but I am using it to create documentation of my source code.我不知道到底发生了什么,我对Pdoc没有那么了解,但我正在使用它来创建我的源代码的文档。 It usually works pretty well but I recently stumbled into a problem when documenting classes inheriting from enum.Enum .它通常工作得很好,但我最近在记录从enum.Enum继承的类时偶然发现了一个问题。 The class documentation works just fine but every single class variable I add to the enum contains th whole documentation under it.类文档工作得很好,但我添加到枚举中的每个类变量都包含它下面的整个文档。

Is there any way to remove these?有什么办法可以去掉这些吗?

The latest version of pdoc renders Enums just fine.最新版本的pdoc可以很好地呈现 Enums。 Here is an example: https://pdoc.dev/docs/demo_long.html#EnumDemo这是一个例子: https : //pdoc.dev/docs/demo_long.html#EnumDemo

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM