from enum import Enum class UnitEnergy(str, Enum): """The valid types of energy units.""" # noqa: E501 """# British Thermal Unit (BTU) """ # noqa: E501 BTU = "btu" """# Electron Volts (eV) """ # noqa: E501 ELECTRONVOLTS = "electronvolts" """# Joules (or watt-seconds) """ # noqa: E501 JOULES = "joules" """# Kilocalories (often just called calories) """ # noqa: E501 KILOCALORIES = "kilocalories" """# Kilowatt hours (kWh) """ # noqa: E501 KILOWATT_HOURS = "kilowatt_hours" """# Watt hours (Wh) """ # noqa: E501 WATT_HOURS = "watt_hours" def __str__(self) -> str: return str(self.value)