MCPcopy
hub / github.com/beetbox/beets / wrapper

Function wrapper

beets/plugins.py:544–547  ·  view source on GitHub ↗
(*args: P.args, **kwargs: P.kwargs)

Source from the content-addressed store, hash-verified

542 ) -> Callable[P, Iterator[Ret]]:
543 @wraps(func)
544 def wrapper(*args: P.args, **kwargs: P.kwargs) -> Iterator[Ret]:
545 for v in func(*args, **kwargs):
546 send(event, info=v)
547 yield v
548
549 return wrapper
550

Callers

nothing calls this directly

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected