linting
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from dataclasses import dataclass, field
|
||||
from typing import List
|
||||
|
||||
from .base import FoodItem
|
||||
from .eggs import Eggs
|
||||
@@ -12,7 +11,7 @@ class GreenEggs(Eggs):
|
||||
|
||||
@dataclass
|
||||
class Menu:
|
||||
dishes: List[type[FoodItem]] = field(init=False)
|
||||
dishes: list[type[FoodItem]] = field(init=False)
|
||||
|
||||
def __post_init__(self):
|
||||
self.dishes = [GreenEggs, Ham]
|
||||
|
||||
@@ -13,4 +13,5 @@ class Utensil(Enum):
|
||||
POT = auto()
|
||||
PAN = auto()
|
||||
|
||||
|
||||
GLOBAL_VAR = Utensil.FORK
|
||||
|
||||
0
conf/apps/food-repo/src/restaurant/__init__.py
Normal file
0
conf/apps/food-repo/src/restaurant/__init__.py
Normal file
@@ -5,7 +5,7 @@ from food.menu import Menu
|
||||
class Restaurant(ADAPI):
|
||||
menu: Menu
|
||||
|
||||
def initialize(self):
|
||||
def initialize(self) -> None:
|
||||
self.log(f'{self.__class__.__name__} initialized')
|
||||
|
||||
self.menu = Menu()
|
||||
|
||||
Reference in New Issue
Block a user