We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0b0061 commit 87a1777Copy full SHA for 87a1777
patterns/behavioral/strategy.py
@@ -55,7 +55,7 @@ def apply_discount(self) -> float:
55
return self.price - discount
56
57
def __repr__(self) -> str:
58
- strategy = getattr(self.discount_strategy, '__name__', None)
+ strategy = getattr(self.discount_strategy, "__name__", None)
59
return f"<Order price: {self.price} with discount strategy: {strategy}>"
60
61
0 commit comments