Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent 2b68849 commit 0aceb5e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/tophu/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ def __init__(
)
chunks = dataset.chunks
else:
errmsg = textwrap.dedent("""
errmsg = textwrap.dedent(
"""
the supplied arguments don't match any valid overload of HDF5Dataset
The arguments must match one of the following supported overloads:
Expand All @@ -324,7 +325,8 @@ def __init__(
dtype: numpy.typing.DTypeLike,
**kwargs,
)
""").strip()
"""
).strip()
raise TypeError(errmsg)

# Workaround for `frozen=True`.
Expand Down Expand Up @@ -534,7 +536,8 @@ def __init__(
mode = "w+"
count = 1
else:
errmsg = textwrap.dedent("""
errmsg = textwrap.dedent(
"""
the supplied arguments don't match any valid overload of RasterBand
The arguments must match one of the following supported overloads:
Expand All @@ -557,7 +560,8 @@ def __init__(
transform: rasterio.transform.Affine | None = None,
**options: dict[str, Any],
)
""").strip()
"""
).strip()
raise TypeError(errmsg)

# Create the dataset if it didn't exist.
Expand Down

0 comments on commit 0aceb5e

Please sign in to comment.