ID EN
Enum

property

Python 3.11

A decorator similar to the built-in property, but specifically for enumerations. It allows member attributes to have the same names as members themselves.

Syntax

PYTHON
@enum.property