11 lines
196 B
Python
11 lines
196 B
Python
from enum import Enum
|
|
|
|
|
|
class UnitPowerFormat(str, Enum):
|
|
WATT = 'watt'
|
|
HORSEPOWER = 'horsepower'
|
|
MILLIWATT = 'milliwatt'
|
|
|
|
def __str__(self) -> str:
|
|
return str(self.value)
|