@classmethod
def from_string(cls, s: str):
    """Parse the enum from a string"""
    try:
        return cls[s.upper()]
    except KeyError:
        raise ValueError('%s is not a valid enum for %s' % (s.upper(), cls))
