from enum import Enum class UnitTemperature(str, Enum): """ The valid types of temperature units. """ # noqa: E501 """# Celsius """ # noqa: E501 CELSIUS = 'celsius' """# Fahrenheit """ # noqa: E501 FAHRENHEIT = 'fahrenheit' """# Kelvin """ # noqa: E501 KELVIN = 'kelvin' """# Rankine """ # noqa: E501 RANKINE = 'rankine' def __str__(self) -> str: return str(self.value)