mitmproxy / pdoc

API Documentation for Python Projects
https://pdoc.dev
MIT No Attribution
1.93k stars 190 forks source link

Enumeration Members Without Docstring Do Not Get Rendered Anymore Since v12.2.0 #455

Closed lovetheguitar closed 1 year ago

lovetheguitar commented 1 year ago

Problem Description

With pdoc==12.1.0 enumeration members are rendered nicely, with and without a docstring. After upgrading to 12.2.0 all the enumarations get rendered as "empty classes", when not every single item has a docstring.

I saw https://github.com/mitmproxy/pdoc/issues/411 which seems to improve dataclass documentation but IMHO broke enumeration documentation.

mhils commented 1 year ago

Thanks for the report! 🍰 I'll ship a patch release with a fix. :)

lovetheguitar commented 1 year ago

Thanks for the report! 🍰 I'll ship a patch release with a fix. :)

Very welcome. Thanks for the blazingly fast fix! 🎉