Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2023-09-29 16:05:40 -07:00
parent 31cd9e532d
commit 12c164620b
268 changed files with 22464 additions and 18287 deletions

View File

@ -2,14 +2,13 @@ from enum import Enum
class UnitMass(str, Enum):
"""The valid types of mass units.""" # noqa: E501
""" The valid types of mass units. """ # noqa: E501
"""# Grams <https://en.wikipedia.org/wiki/Gram> """ # noqa: E501
G = 'g'
"""# Kilograms <https://en.wikipedia.org/wiki/Kilogram> """ # noqa: E501
KG = 'kg'
"""# Pounds <https://en.wikipedia.org/wiki/Pound_(mass)> """ # noqa: E501
LB = 'lb'
"""# Grams <https://en.wikipedia.org/wiki/Gram> """ # noqa: E501
G = "g"
"""# Kilograms <https://en.wikipedia.org/wiki/Kilogram> """ # noqa: E501
KG = "kg"
"""# Pounds <https://en.wikipedia.org/wiki/Pound_(mass)> """ # noqa: E501
LB = "lb"
def __str__(self) -> str:
return str(self.value)
def __str__(self) -> str:
return str(self.value)