Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ __set__
Method
__set__
Solutions/4_3/validate.py:12–13 ·
view source on GitHub ↗
(self, instance, value)
Source
from the content-addressed store, hash-verified
10
return
value
11
12
def
__set__(self, instance, value):
13
instance.__dict__[self.name] = self.check(value)
14
15
class
Typed(Validator):
16
expected_type = object
Callers
nothing calls this directly
Calls
1
check
Method · 0.95
Tested by
no test coverage detected