Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ cost
Method
cost
Solutions/9_4/structly/validate.py:164–165 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
162
163
@property
164
def
cost(self):
165
return
self.shares * self.price
166
167
@validated
168
def
sell(self, nshares:PositiveInteger):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected