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

Method check

Solutions/9_2/structly/validate.py:11–12  ·  view source on GitHub ↗
(cls, value)

Source from the content-addressed store, hash-verified

9
10 @classmethod
11 def check(cls, value):
12 return value
13
14 def __set__(self, instance, value):
15 instance.__dict__[self.name] = self.check(value)

Callers 1

__set__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected