Files
kittycad.py/kittycad/models/unit_temperature.py
Jess Frazelle 74f5be43fa Update api spec (#97)
* YOYO NEW API SPEC!

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* attempt fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* I have generated the latest API!

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-26 12:31:24 -07:00

18 lines
593 B
Python

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