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

Method __set__

Solutions/9_2/structly/validate.py:14–15  ·  view source on GitHub ↗
(self, instance, value)

Source from the content-addressed store, hash-verified

12 return value
13
14 def __set__(self, instance, value):
15 instance.__dict__[self.name] = self.check(value)
16
17 # Collect all derived classes into a dict
18 validators = { }

Callers

nothing calls this directly

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected