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

Method __init__

code/descriptor.py:6–8  ·  view source on GitHub ↗
(self, function)

Source from the content-addressed store, hash-verified

4
5class LazyProperty:
6 def __init__(self, function):
7 self.function = function
8 self.name = function.__name__
9
10 def __get__(self, obj, type=None) -> object:
11 obj.__dict__[self.name] = self.function(obj)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected