Source code for mlthon.basics.mlt_enum

from enum import Enum


# Class defining the __str__ and __repr__ methods so that printing enum values actually prints the enum value name
[docs]class MltEnum(Enum): def __repr__(self): return self.name def __str__(self): return self.name