MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / __repr__

Method __repr__

Solutions/7_6/validate.py:160–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 self.price = price
159
160 def __repr__(self):
161 return f'Stock({self.name!r}, {self.shares!r}, {self.price!r})'
162
163 @property
164 def cost(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected