Skip to content

Commit

Permalink
reflow
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Dec 28, 2024
1 parent b886841 commit 50e9c9a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xarray/namedarray/parallelcompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ def guess_chunkmanager(
if manager not in available_chunkmanagers and manager in KNOWN_CHUNKMANAGERS:
raise ImportError(
f"chunk manager {manager!r} is not available."
f" Please make sure {KNOWN_CHUNKMANAGERS[manager]!r} is installed and importable."
f" Please make sure {KNOWN_CHUNKMANAGERS[manager]!r} is installed"
" and importable."
)
elif len(available_chunkmanagers) == 0:
raise ImportError(
"no chunk managers available. Try installing `dask` or another package that provides a chunk manager."
"no chunk managers available. Try installing `dask` or another package"
" that provides a chunk manager."
)
elif manager not in available_chunkmanagers:
raise ValueError(
Expand All @@ -133,7 +135,8 @@ def guess_chunkmanager(
return manager
else:
raise TypeError(
f"manager must be a string or instance of ChunkManagerEntrypoint, but received type {type(manager)}"
"manager must be a string or instance of ChunkManagerEntrypoint,"
f" but received type {type(manager)}"
)


Expand Down

0 comments on commit 50e9c9a

Please sign in to comment.