langchain/output_parsers/enum.py/EnumOutputParser/raise_deprecation
class EnumOutputParser:    def raise_deprecation(cls, values: Dict) -> Dict:
        enum = values["enum"]
        if not all(isinstance(e.value, str) for e in enum):
            raise ValueError("Enum values must be strings")
        return values