Skip to content

Commit af6fc3e

Browse files
committed
Additional linting error in patterns/behavioral/strategy.py added spaces, changed to multiline string
1 parent 11113ea commit af6fc3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

patterns/behavioral/strategy.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ def apply_discount(self) -> float:
5555
return self.price - discount
5656

5757
def __repr__(self) -> str:
58-
return f"<Order price: {self.price} with discount strategy: {getattr(self.discount_strategy,'__name__',None)}>"
58+
return f"""
59+
<Order price: {self.price} with discount strategy: {getattr(self.discount_strategy, '__name__', None)}>
60+
"""
5961

6062

6163
def ten_percent_discount(order: Order) -> float:

0 commit comments

Comments
 (0)