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

Function reprcall

faust/utils/codegen.py:251–263  ·  view source on GitHub ↗
(
    name: str,
    args: Tuple = (),
    kwargs: Mapping[str, Any] = {},  # noqa: B006
    *,
    sep: str = ", ",
)

Source from the content-addressed store, hash-verified

249
250
251def reprcall(
252 name: str,
253 args: Tuple = (),
254 kwargs: Mapping[str, Any] = {}, # noqa: B006
255 *,
256 sep: str = ", ",
257) -> str:
258 return "{0}({1}{2}{3})".format(
259 name,
260 sep.join(map(repr, args or ())),
261 (args and kwargs) and sep or "",
262 reprkwargs(kwargs, sep=sep),
263 )

Callers 3

test_reprcallFunction · 0.90
__repr__Method · 0.90
__repr__Method · 0.90

Calls 2

reprkwargsFunction · 0.85
joinMethod · 0.45

Tested by 1

test_reprcallFunction · 0.72