from enum import Enum class UnitLengthFormat(str, Enum): """The valid types of length unit formats.""" # noqa: E501 """# """ # noqa: E501 METER = "meter" """# """ # noqa: E501 MILLIMETER = "millimeter" """# """ # noqa: E501 CENTIMETER = "centimeter" """# """ # noqa: E501 KILOMETER = "kilometer" """# """ # noqa: E501 FOOT = "foot" """# """ # noqa: E501 MIL = "mil" """# """ # noqa: E501 INCH = "inch" """# """ # noqa: E501 MILE = "mile" """# """ # noqa: E501 NAUTICAL_MILE = "nautical_mile" """# """ # noqa: E501 ASTRONOMICAL_UNIT = "astronomical_unit" """# """ # noqa: E501 LIGHTYEAR = "lightyear" """# """ # noqa: E501 PARSEC = "parsec" """# """ # noqa: E501 ANGSTROM = "angstrom" """# """ # noqa: E501 CUBIT = "cubit" """# """ # noqa: E501 FATHOM = "fathom" """# """ # noqa: E501 CHAIN = "chain" """# """ # noqa: E501 FURLONG = "furlong" """# """ # noqa: E501 HAND = "hand" """# """ # noqa: E501 LEAGUE = "league" """# """ # noqa: E501 NAUTICAL_LEAGUE = "nautical_league" """# """ # noqa: E501 YARD = "yard" def __str__(self) -> str: return str(self.value)