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

Method __set_name__

Solutions/4_3/validate.py:5–6  ·  view source on GitHub ↗
(self, cls, name)

Source from the content-addressed store, hash-verified

3 self.name = name
4
5 def __set_name__(self, cls, name):
6 self.name = name
7
8 @classmethod
9 def check(cls, value):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected