Skip to content

Support for Enum aliases #111

@redruin1

Description

@redruin1

Description

It seems that .. autoenum:: does not currently support Enums with aliases:

@document_enum
class InventoryType(IntEnum):
    """
    Constants which define which internal inventories
    :py:attr:`.Entity.item_requests` should reside in.
    """

    artillery_turret_ammo = 1
    artillery_wagon_ammo = 1
    beacon_modules = 1
    cargo_landing_pad_main = 1
    cargo_unit = 1
    cargo_wagon = 1
    character_corpse = 1
    character_main = 1
    chest = 1
    editor_main = 1
    fuel = 1
    hub_main = 1
    item_main = 1
    roboport_robot = 1
    robot_cargo = 1
    turret_ammo = 1
    assembling_machine_input = 2
    ... # etc.

As you can see, only 10 values are populated out of ~3 dozen total:

Image

If this is instead a bug, feel free to mark it as so.

Version

  • Operating System: Win10
  • Python: 3.13.5
  • enum_tools: 0.13.0

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions