kittycad.models.unit_area
Classes
|
The valid types of area units. |
- class kittycad.models.unit_area.UnitArea(value)[source][source]
The valid types of area units.
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_area', '__doc__': 'The valid types of area units.', '__str__': <function UnitArea.__str__>, '__dict__': <attribute '__dict__' of 'UnitArea' objects>, '__weakref__': <attribute '__weakref__' of 'UnitArea' objects>, '_member_names_': ['CM2', 'DM2', 'FT2', 'IN2', 'KM2', 'M2', 'MM2', 'YD2'], '_member_map_': {'CM2': <UnitArea.CM2: 'cm2'>, 'DM2': <UnitArea.DM2: 'dm2'>, 'FT2': <UnitArea.FT2: 'ft2'>, 'IN2': <UnitArea.IN2: 'in2'>, 'KM2': <UnitArea.KM2: 'km2'>, 'M2': <UnitArea.M2: 'm2'>, 'MM2': <UnitArea.MM2: 'mm2'>, 'YD2': <UnitArea.YD2: 'yd2'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'cm2': <UnitArea.CM2: 'cm2'>, 'dm2': <UnitArea.DM2: 'dm2'>, 'ft2': <UnitArea.FT2: 'ft2'>, 'in2': <UnitArea.IN2: 'in2'>, 'km2': <UnitArea.KM2: 'km2'>, 'm2': <UnitArea.M2: 'm2'>, 'mm2': <UnitArea.MM2: 'mm2'>, 'yd2': <UnitArea.YD2: 'yd2'>}, 'CM2': <UnitArea.CM2: 'cm2'>, 'DM2': <UnitArea.DM2: 'dm2'>, 'FT2': <UnitArea.FT2: 'ft2'>, 'IN2': <UnitArea.IN2: 'in2'>, 'KM2': <UnitArea.KM2: 'km2'>, 'M2': <UnitArea.M2: 'm2'>, 'MM2': <UnitArea.MM2: 'mm2'>, 'YD2': <UnitArea.YD2: 'yd2'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[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