updates
This commit is contained in:
0
conf/apps/food-repo/README.md
Normal file
0
conf/apps/food-repo/README.md
Normal file
@@ -12,7 +12,7 @@ class GreenEggs(Eggs):
|
||||
|
||||
@dataclass
|
||||
class Menu:
|
||||
dishes: List[FoodItem] = field(init=False)
|
||||
dishes: List[type[FoodItem]] = field(init=False)
|
||||
|
||||
def __post_init__(self):
|
||||
self.dishes = [GreenEggs, Ham]
|
||||
|
||||
16
conf/apps/food-repo/src/food/utils.py
Normal file
16
conf/apps/food-repo/src/food/utils.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from enum import Enum, auto
|
||||
|
||||
|
||||
class Utensil(Enum):
|
||||
KNIFE = auto()
|
||||
FORK = auto()
|
||||
SPOON = auto()
|
||||
PLATE = auto()
|
||||
BOWL = auto()
|
||||
CUP = auto()
|
||||
GLASS = auto()
|
||||
MUG = auto()
|
||||
POT = auto()
|
||||
PAN = auto()
|
||||
|
||||
GLOBAL_VAR = Utensil.FORK
|
||||
Reference in New Issue
Block a user