kittycad.models.unit_volume
Classes
|
The valid types of volume units. |
- class kittycad.models.unit_volume.UnitVolume(value)[source][source]
The valid types of volume units.
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_volume', '__doc__': 'The valid types of volume units.', '__str__': <function UnitVolume.__str__>, '__dict__': <attribute '__dict__' of 'UnitVolume' objects>, '__weakref__': <attribute '__weakref__' of 'UnitVolume' objects>, '_member_names_': ['CM3', 'FT3', 'IN3', 'M3', 'YD3', 'USFLOZ', 'USGAL', 'L', 'ML'], '_member_map_': {'CM3': <UnitVolume.CM3: 'cm3'>, 'FT3': <UnitVolume.FT3: 'ft3'>, 'IN3': <UnitVolume.IN3: 'in3'>, 'M3': <UnitVolume.M3: 'm3'>, 'YD3': <UnitVolume.YD3: 'yd3'>, 'USFLOZ': <UnitVolume.USFLOZ: 'usfloz'>, 'USGAL': <UnitVolume.USGAL: 'usgal'>, 'L': <UnitVolume.L: 'l'>, 'ML': <UnitVolume.ML: 'ml'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'cm3': <UnitVolume.CM3: 'cm3'>, 'ft3': <UnitVolume.FT3: 'ft3'>, 'in3': <UnitVolume.IN3: 'in3'>, 'm3': <UnitVolume.M3: 'm3'>, 'yd3': <UnitVolume.YD3: 'yd3'>, 'usfloz': <UnitVolume.USFLOZ: 'usfloz'>, 'usgal': <UnitVolume.USGAL: 'usgal'>, 'l': <UnitVolume.L: 'l'>, 'ml': <UnitVolume.ML: 'ml'>}, 'CM3': <UnitVolume.CM3: 'cm3'>, 'FT3': <UnitVolume.FT3: 'ft3'>, 'IN3': <UnitVolume.IN3: 'in3'>, 'M3': <UnitVolume.M3: 'm3'>, 'YD3': <UnitVolume.YD3: 'yd3'>, 'USFLOZ': <UnitVolume.USFLOZ: 'usfloz'>, 'USGAL': <UnitVolume.USGAL: 'usgal'>, 'L': <UnitVolume.L: 'l'>, 'ML': <UnitVolume.ML: 'ml'>, '__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