ValueEnum
- class emmet.core.types.enums.ValueEnum(value)
Bases:
EnumEnum that serializes to string as the value.
While this method has an as_dict method, this returns a str. This is to ensure deserialization to a str when functions like monty.json.jsanitize are called on a ValueEnum with strict = True and enum_values = False (occurs often in jobflow).
- classmethod validate(_ValueEnum__input_value, _)
Define pydantic validator for emmet enums.
- Return type:
Self- Parameters:
_ValueEnum__input_value (Any)
_ (core_schema.ValidationInfo)