MCPcopy Create free account
hub / github.com/DasyDong/developer-roadmap / __get__

Method __get__

code/descriptor.py:10–12  ·  view source on GitHub ↗
(self, obj, type=None)

Source from the content-addressed store, hash-verified

8 self.name = function.__name__
9
10 def __get__(self, obj, type=None) -> object:
11 obj.__dict__[self.name] = self.function(obj)
12 return obj.__dict__[self.name]
13
14 def __set__(self, obj, value):
15 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected