Files
kittycad.py/kittycad/models/unit_length_format.py
Jess Frazelle fcd317aae4 bump (#80)
* bump

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

* some fixes

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

* YOYO NEW API SPEC!

* reformat

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

* updates

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

* updates

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

* fixups

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

* for now force true

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

* run the tests on generations

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

* add tests

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

* update

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

* update

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

* update

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

* updates

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

* update

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

* fix some types

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

* float to top

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

* fix mypy

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

* more noqa

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

* fixups

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

* ruff pass

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

* add docs

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>

* fixes

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

* even less mypy errors

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

* updates

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

* updates

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

* updates

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

* updates

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

* add test

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

* fixes

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

* updates

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

* fixes

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

* updates

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

* fixups

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

* fixes

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

* cleanup

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

* updates

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

* fix

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

* updates

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

* fix

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

* new path

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

* fixes for mypy

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

* skip tests

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

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 00:58:06 -07:00

52 lines
2.1 KiB
Python

from enum import Enum
class UnitLengthFormat(str, Enum):
"""The valid types of length unit formats.""" # noqa: E501
"""# <https://en.wikipedia.org/wiki/Metre> """ # noqa: E501
METER = "meter"
"""# <https://en.wikipedia.org/wiki/Millimetre> """ # noqa: E501
MILLIMETER = "millimeter"
"""# <https://en.wikipedia.org/wiki/Centimetre> """ # noqa: E501
CENTIMETER = "centimeter"
"""# <https://en.wikipedia.org/wiki/Kilometre> """ # noqa: E501
KILOMETER = "kilometer"
"""# <https://en.wikipedia.org/wiki/Foot_(unit)> """ # noqa: E501
FOOT = "foot"
"""# <https://en.wikipedia.org/wiki/Thousandth_of_an_inch> """ # noqa: E501
MIL = "mil"
"""# <https://en.wikipedia.org/wiki/Inch> """ # noqa: E501
INCH = "inch"
"""# <https://en.wikipedia.org/wiki/Mile> """ # noqa: E501
MILE = "mile"
"""# <https://en.wikipedia.org/wiki/Nautical_mile> """ # noqa: E501
NAUTICAL_MILE = "nautical_mile"
"""# <https://en.wikipedia.org/wiki/Astronomical_unit> """ # noqa: E501
ASTRONOMICAL_UNIT = "astronomical_unit"
"""# <https://en.wikipedia.org/wiki/Light-year> """ # noqa: E501
LIGHTYEAR = "lightyear"
"""# <https://en.wikipedia.org/wiki/Parsec> """ # noqa: E501
PARSEC = "parsec"
"""# <https://en.wikipedia.org/wiki/Angstrom> """ # noqa: E501
ANGSTROM = "angstrom"
"""# <https://en.wikipedia.org/wiki/Cubit> """ # noqa: E501
CUBIT = "cubit"
"""# <https://en.wikipedia.org/wiki/Fathom> """ # noqa: E501
FATHOM = "fathom"
"""# <https://en.wikipedia.org/wiki/Chain_(unit)> """ # noqa: E501
CHAIN = "chain"
"""# <https://en.wikipedia.org/wiki/Furlong> """ # noqa: E501
FURLONG = "furlong"
"""# <https://en.wikipedia.org/wiki/Hand_(unit)> """ # noqa: E501
HAND = "hand"
"""# <https://en.wikipedia.org/wiki/League_(unit)> """ # noqa: E501
LEAGUE = "league"
"""# <https://en.wikipedia.org/wiki/List_of_nautical_units_of_measurement> """ # noqa: E501
NAUTICAL_LEAGUE = "nautical_league"
"""# <https://en.wikipedia.org/wiki/Yard> """ # noqa: E501
YARD = "yard"
def __str__(self) -> str:
return str(self.value)