from enum import Enum class UnitMass(str, Enum): """ The valid types of mass units. """ # noqa: E501 """# Grams """ # noqa: E501 G = 'g' """# Kilograms """ # noqa: E501 KG = 'kg' """# Pounds """ # noqa: E501 LB = 'lb' def __str__(self) -> str: return str(self.value)