libqtum
This Decorator returns an Enum, which contains all values in values
.
Values, which the passed class not include, will be auto generated with
prefix
+ value as name if they are in the values
list.
Args:
values: An iterable list of values for the Enum members.
enum_cls: The Enum class or a subclass of it.
prefix: The prefix for the name of the auto generated Enum members.
*args: Will be passed to the enum_cls
constructor.
**kwargs: Will be passed to the enum_cls
constructor.