Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support for Enum aliases #111

Copy link
Copy link
@redruin1

Description

@redruin1
Issue body actions

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
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.