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

Method __init__

Solutions/8_1/validate.py:155–158  ·  view source on GitHub ↗
(self, name, shares, price)

Source from the content-addressed store, hash-verified

153 shares = PositiveInteger()
154 price = PositiveFloat()
155 def __init__(self, name, shares, price):
156 self.name = name
157 self.shares = shares
158 self.price = price
159
160 def __repr__(self):
161 return f'Stock({self.name!r}, {self.shares!r}, {self.price!r})'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected