Skip to content

py::native_enum: Remove # value = prints #305

@ax3l

Description

@ax3l

As a follow-up to #303 (seen there first):

We should probably remove these # value = ... comments: They carry no semantic value for types or autodocs, are mostly for debugging, but problematically do need sanitizing for some types to be stable. Same as #235 #251

To check if native enums even allow problematic types, maybe they are all safe:
https://docs.python.org/3/library/enum.html#module-contents

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions