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

Method __repr__

Solutions/4_3/validate.py:71–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 self.price = price
70
71 def __repr__(self):
72 return f'Stock({self.name!r}, {self.shares!r}, {self.price!r})'
73
74 @property
75 def cost(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected