MCPcopy Create free account
hub / github.com/LabPy/lantz / __call__

Method __call__

lantz/action.py:82–88  ·  view source on GitHub ↗
(self, func)

Source from the content-addressed store, hash-verified

80 self.args = ()
81
82 def __call__(self, func):
83 self.func = func
84 self.args = inspect.getfullargspec(func).args
85 self.__name__ = func.__name__
86 self.__doc__ = func.__doc__
87 self.rebuild(store=True)
88 return self
89
90 def __get__(self, instance, owner=None):
91 func = functools.partial(self.call, instance)

Callers

nothing calls this directly

Calls 1

rebuildMethod · 0.95

Tested by

no test coverage detected