jade.enums.get_enum_from_str

jade.enums.get_enum_from_str(string)[source]

Converts a enum that’s been written as a string back to an enum.

Parameters:

string (str) – string to convert

Returns:

converted, converted enum or original

Return type:

tuple