We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 055edfa commit 68e62a9Copy full SHA for 68e62a9
patterns/behavioral/chain_of_responsibility.py
@@ -65,7 +65,7 @@ class ConcreteHandler1(Handler):
65
66
def check_range(self, request: int) -> Optional[bool]:
67
if self.start <= request < self.end:
68
- print("request {} handled in handler 1".format(request))
+ print(f"request {request} handled in handler 1")
69
return True
70
71
@@ -75,7 +75,7 @@ class ConcreteHandler2(Handler):
75
76
start, end = self.get_interval_from_db()
77
if start <= request < end:
78
- print("request {} handled in handler 2".format(request))
+ print(f"request {request} handled in handler 2")
79
80
81
@staticmethod
0 commit comments