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

Method __repr__

Solutions/7_3/validate.py:155–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 self.price = price
154
155 def __repr__(self):
156 return f'Stock({self.name!r}, {self.shares!r}, {self.price!r})'
157
158 @property
159 def cost(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected