Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/fluentpython/example-code-2e
/ __repr__
Method
__repr__
10-dp-1class-func/strategy.py:67–68 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
65
return
self.total() - discount
66
67
def
__repr__(self):
68
return
f
'<Order total: {self.total():.2f} due: {self.due():.2f}>'
69
70
71
# <3>
Callers
nothing calls this directly
Calls
2
total
Method · 0.95
due
Method · 0.95
Tested by
no test coverage detected