Skip to content

Commit 336bd82

Browse files
authored
Update models.py
1 parent 6d74aeb commit 336bd82

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python_part_3/homework/models.py

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class Product:
88
description: str
99
quantity: int
1010

11-
1211
def check_quantity(self, quantity) -> bool:
1312
if self.quantity >= quantity:
1413
return True
@@ -37,7 +36,6 @@ def add_product(self, product: Product, buy_count=1):
3736
else:
3837
self.products[product] = buy_count
3938

40-
4139
def remove_product(self, product: Product, remove_count=None):
4240
if product not in self.products:
4341
return

0 commit comments

Comments
 (0)