(self)
| 9 | self.price = price |
| 10 | |
| 11 | def __repr__(self): |
| 12 | # Note: The !r format code produces the repr() string |
| 13 | return f'{type(self).__name__}({self.name!r}, {self.shares!r}, {self.price!r})' |
| 14 | |
| 15 | def __eq__(self, other): |
| 16 | return isinstance(other, Stock) and ((self.name, self.shares, self.price) == |
nothing calls this directly
no outgoing calls
no test coverage detected