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

Function queries

beets/plugins.py:493–500  ·  view source on GitHub ↗

Returns a dict mapping prefix strings to Query subclasses all loaded plugins.

()

Source from the content-addressed store, hash-verified

491
492
493def queries() -> dict[str, type[Query]]:
494 """Returns a dict mapping prefix strings to Query subclasses all loaded
495 plugins.
496 """
497 out: dict[str, type[Query]] = {}
498 for plugin in find_plugins():
499 out.update(plugin.queries())
500 return out
501
502
503def types(model_cls: type[AnyModel]) -> dict[str, Type]:

Callers

nothing calls this directly

Calls 3

find_pluginsFunction · 0.85
updateMethod · 0.45
queriesMethod · 0.45

Tested by

no test coverage detected