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

Method __set__

Solutions/7_3/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
17class Typed(Validator):
18 expected_type = object

Callers

nothing calls this directly

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected