Skip to content

Commit

Permalink
Mypy corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
coddingtonbear committed Jan 4, 2024
1 parent cecd11a commit 3cf3be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myfitnesspal/fooditem.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(
name: str,
brand: Optional[str],
verified: bool,
calories: float,
calories: Optional[float],
details: Optional[FoodItemNutritionDict] = None,
confirmations: Optional[int] = None,
serving_sizes: Optional[List[types.ServingSizeDict]] = None,
Expand Down Expand Up @@ -92,7 +92,7 @@ def serving(self) -> Optional[str]:
return None

@property
def calories(self) -> float:
def calories(self) -> Optional[float]:
"""Calories"""
return self._calories

Expand Down

0 comments on commit 3cf3be1

Please sign in to comment.