Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions data/part-10/3-oo-programming-techniques.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ class Product:
def price(self):
return self.__price

def cheaper(self, Product):
if self.__price < Product.price:
def cheaper(self, other: Product) -> Product:
if self.__price < other.price:
return self
else:
return Product
return other
```

```python
Expand Down