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

Function get_version

dask/_compatibility.py:42–46  ·  view source on GitHub ↗
(module: types.ModuleType)

Source from the content-addressed store, hash-verified

40
41
42def get_version(module: types.ModuleType) -> str:
43 try:
44 return module.__version__
45 except AttributeError as e: # pragma: no cover
46 raise ImportError(f"Can't determine version for {module.__name__}") from e
47
48
49@overload

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected