Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/dask/__init__.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from __future__ import annotations
3from dask import config, datasets
4from dask._expr import Expr, HLGExpr, LLGExpr, SingletonExpr
6try:
7 # Backwards compatibility with versioneer
8 from dask._version import __commit_id__ as __git_revision__
9 from dask._version import __version__
10except ImportError: # pragma: no cover
11 # The version file is generated at install time; a cached install may skip it.
12 # Fall back to the distribution metadata, and only report "unknown" when dask is
13 # not installed at all. A bare "unknown" would break anything parsing the version
14 # (e.g. xarray's DuckArrayModule).
15 from importlib.metadata import PackageNotFoundError, version
17 try:
18 __version__ = version("dask")
19 except PackageNotFoundError:
20 __version__ = "unknown"
22 __git_revision__ = "unknown"
23 del PackageNotFoundError, version
25from dask.base import (
26 annotate,
27 compute,
28 get_annotations,
29 is_dask_collection,
30 optimize,
31 persist,
32 visualize,
33)
34from dask.core import istask
35from dask.delayed import delayed
36from dask.local import get_sync as get