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

Function _register_entry_point_plugins

dask/sizeof.py:311–320  ·  view source on GitHub ↗

Register sizeof implementations exposed by the entry_point mechanism.

()

Source from the content-addressed store, hash-verified

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

Callers 1

sizeof.pyFile · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected