Skip to content

Arbitrary documentation is generated for undocumented enum, with python 3.12 #701

@mfrigerio17

Description

@mfrigerio17

Hi,
With an undocumented enum like this

from enum import Enum

class MyEnum(Enum):
    one = 1,
    two = 2

pdoc 14.5.0 with python 3.12 generates html with some "default" documentation of a Color enum.

The same pdoc version with python 3.10 behaves as expected, i.e. the html docs do not say anything (besides "An enumeration").

Not a sever bug, a bit funny I would say :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions