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

Method __init__

Solutions/6_5/validate.py:88–91  ·  view source on GitHub ↗
(self, name, shares, price)

Source from the content-addressed store, hash-verified

86 shares = PositiveInteger()
87 price = PositiveFloat()
88 def __init__(self, name, shares, price):
89 self.name = name
90 self.shares = shares
91 self.price = price
92
93 def __repr__(self):
94 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