MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / __init__

Method __init__

Utility/Extensions/Chain.py:14–16  ·  view source on GitHub ↗
(self, func: T.Callable[[I,], O])

Source from the content-addressed store, hash-verified

12 (f1 >> f2)(x) = f2(f1(x))
13 """
14 def __init__(self, func: T.Callable[[I,], O]) -> None:
15 super().__init__()
16 self.func = func
17
18 def __call__(self, arg: I) -> O:
19 return self.func(arg)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected