Skip to content

Commit 2060085

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d5e1fb0 commit 2060085

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

other/grocery_store_cart.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ def remove_item(self, item: str, quantity: int = 1) -> None:
101101

102102
def total_price(self) -> float:
103103
return sum(
104-
self.price_catalog[item] * qty
105-
for item, qty in self.quantities.items()
104+
self.price_catalog[item] * qty for item, qty in self.quantities.items()
106105
)
107106

108107

0 commit comments

Comments
 (0)