MCPcopy
hub / github.com/faust-streaming/faust / Method

Function Method

faust/utils/codegen.py:147–149  ·  view source on GitHub ↗

Generate Python method.

(name: str, args: List[str], body: List[str], **kwargs: Any)

Source from the content-addressed store, hash-verified

145
146
147def Method(name: str, args: List[str], body: List[str], **kwargs: Any) -> Callable:
148 """Generate Python method."""
149 return Function(name, ["self"] + args, body, **kwargs)
150
151
152def InitMethod(args: List[str], body: List[str], **kwargs: Any) -> Callable[[], None]:

Callers 3

InitMethodFunction · 0.85
HashMethodFunction · 0.85
CompareMethodFunction · 0.85

Calls 1

FunctionFunction · 0.85

Tested by

no test coverage detected