kittycad.models.unit_power_format.UnitPowerFormat

class kittycad.models.unit_power_format.UnitPowerFormat(value)[source][source]

Bases: str, enum.Enum

The valid types of power unit formats.

__init__()[source]

Attributes

WATT

//en.wikipedia.org/wiki/Horsepower>

HORSEPOWER

//en.wikipedia.org/wiki/Watt#Milliwatt>

MILLIWATT

HORSEPOWER = 'horsepower'[source]

//en.wikipedia.org/wiki/Watt#Milliwatt>

Type

# <https

MILLIWATT = 'milliwatt'[source]
WATT = 'watt'[source]

//en.wikipedia.org/wiki/Horsepower>

Type

# <https

__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_power_format', '__doc__': 'The valid types of power unit formats.', '__str__': <function UnitPowerFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitPowerFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitPowerFormat' objects>, '_member_names_': ['WATT', 'HORSEPOWER', 'MILLIWATT'], '_member_map_': {'WATT': <UnitPowerFormat.WATT: 'watt'>, 'HORSEPOWER': <UnitPowerFormat.HORSEPOWER: 'horsepower'>, 'MILLIWATT': <UnitPowerFormat.MILLIWATT: 'milliwatt'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'watt': <UnitPowerFormat.WATT: 'watt'>, 'horsepower': <UnitPowerFormat.HORSEPOWER: 'horsepower'>, 'milliwatt': <UnitPowerFormat.MILLIWATT: 'milliwatt'>}, 'WATT': <UnitPowerFormat.WATT: 'watt'>, 'HORSEPOWER': <UnitPowerFormat.HORSEPOWER: 'horsepower'>, 'MILLIWATT': <UnitPowerFormat.MILLIWATT: 'milliwatt'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_power_format'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'HORSEPOWER': UnitPowerFormat.HORSEPOWER, 'MILLIWATT': UnitPowerFormat.MILLIWATT, 'WATT': UnitPowerFormat.WATT}[source]
_member_names_ = ['WATT', 'HORSEPOWER', 'MILLIWATT'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'horsepower': UnitPowerFormat.HORSEPOWER, 'milliwatt': UnitPowerFormat.MILLIWATT, 'watt': UnitPowerFormat.WATT}[source]