Skip to content

str/repr mixup in StringEnum?Β #1369

@soxofaan

Description

@soxofaan

pystac/pystac/utils.py

Lines 78 to 83 in 630116c

class StringEnum(str, Enum):
"""Base :class:`enum.Enum` class for string enums that will serialize as the string
value."""
def __repr__(self) -> str:
return str(self.value)

Is it intentional to return str(self.value) instead of repr(self.value) here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions