kittycad.models.unit_mass.UnitMass

class kittycad.models.unit_mass.UnitMass(value)[source][source]

Bases: str, Enum

The valid types of mass units.

__init__()[source]

Attributes

G

//en.wikipedia.org/wiki/Kilogram>

KG

//en.wikipedia.org/wiki/Pound_(mass)>

LB

G = 'g'[source]

//en.wikipedia.org/wiki/Kilogram>

Type:

# Kilograms <https

KG = 'kg'[source]

//en.wikipedia.org/wiki/Pound_(mass)>

Type:

# Pounds <https

LB = 'lb'[source]
__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_mass', '__doc__': 'The valid types of mass units.', '__str__': <function UnitMass.__str__>, '__dict__': <attribute '__dict__' of 'UnitMass' objects>, '__weakref__': <attribute '__weakref__' of 'UnitMass' objects>, '_member_names_': ['G', 'KG', 'LB'], '_member_map_': {'G': <UnitMass.G: 'g'>, 'KG': <UnitMass.KG: 'kg'>, 'LB': <UnitMass.LB: 'lb'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'g': <UnitMass.G: 'g'>, 'kg': <UnitMass.KG: 'kg'>, 'lb': <UnitMass.LB: 'lb'>}, 'G': <UnitMass.G: 'g'>, 'KG': <UnitMass.KG: 'kg'>, 'LB': <UnitMass.LB: 'lb'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_mass'[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_ = {'G': UnitMass.G, 'KG': UnitMass.KG, 'LB': UnitMass.LB}[source]
_member_names_ = ['G', 'KG', 'LB'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'g': UnitMass.G, 'kg': UnitMass.KG, 'lb': UnitMass.LB}[source]