fix: strict optional errors (#1759)

* fix strict optional errors

* fix typing in repository

* fix backup db files location

* update workspace settings
This commit is contained in:
Hayden
2022-10-23 13:04:04 -08:00
committed by GitHub
parent 97d9e2a109
commit 84c23765cd
31 changed files with 253 additions and 139 deletions

View File

@@ -34,9 +34,9 @@ class ShoppingListItemCreate(MealieModel):
note: str | None = ""
quantity: float = 1
unit_id: UUID4 = None
unit_id: UUID4 | None = None
unit: IngredientUnit | None
food_id: UUID4 = None
food_id: UUID4 | None = None
food: IngredientFood | None
label_id: UUID4 | None = None
@@ -67,7 +67,7 @@ class ShoppingListItemOut(ShoppingListItemUpdate):
class ShoppingListCreate(MealieModel):
name: str = None
name: str | None = None
extras: dict | None = {}
created_at: datetime | None