MCPcopy Create free account
hub / github.com/dask/dask / _register_entry_point_plugins

Function _register_entry_point_plugins

dask/sizeof.py:306–315  ·  view source on GitHub ↗

Register sizeof implementations exposed by the entry_point mechanism.

()

Source from the content-addressed store, hash-verified

304
305
306def _register_entry_point_plugins():
307 """Register sizeof implementations exposed by the entry_point mechanism."""
308 for entry_point in importlib_metadata.entry_points(group="dask.sizeof"):
309 registrar = entry_point.load()
310 try:
311 registrar(sizeof)
312 except Exception:
313 logger.exception(
314 f"Failed to register sizeof entry point {entry_point.name}"
315 )
316
317
318_register_entry_point_plugins()

Callers 1

sizeof.pyFile · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected