25 lines
545 B
Python
25 lines
545 B
Python
from enum import Enum
|
|
|
|
|
|
class UnitLengthFormat(str, Enum):
|
|
MILLIMETER = 'millimeter'
|
|
CENTIMETER = 'centimeter'
|
|
METER = 'meter'
|
|
KILOMTER = 'kilomter'
|
|
FOOT = 'foot'
|
|
INCH = 'inch'
|
|
MILE = 'mile'
|
|
NAUTICAL_MILE = 'nautical_mile'
|
|
ASTRONOMICAL_UNIT = 'astronomical_unit'
|
|
CUBIT = 'cubit'
|
|
FATHOM = 'fathom'
|
|
CHAIN = 'chain'
|
|
FURLONG = 'furlong'
|
|
HAND = 'hand'
|
|
LEAGUE = 'league'
|
|
NAUTICAL_LEAGUE = 'nautical_league'
|
|
YARD = 'yard'
|
|
|
|
def __str__(self) -> str:
|
|
return str(self.value)
|