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

Method __repr__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected