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

Method __repr__

Solutions/4_2/validate.py:60–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 self.price = price
59
60 def __repr__(self):
61 return f'Stock({self.name!r}, {self.shares!r}, {self.price!r})'
62
63 @property
64 def shares(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected