From 60cb43e3b7d9e0d92b1af189c2213f460b4b2c4e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 18:23:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- virtualizarr/writers/icechunk.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/virtualizarr/writers/icechunk.py b/virtualizarr/writers/icechunk.py index 34435843..4765de77 100644 --- a/virtualizarr/writers/icechunk.py +++ b/virtualizarr/writers/icechunk.py @@ -149,11 +149,14 @@ def write_manifest_virtual_refs( # but Icechunk need to expose a suitable API first it = np.nditer( [manifest._paths, manifest._offsets, manifest._lengths], - flags=cast(Sequence[np._NDIterFlagsKind], [ - "refs_ok", - "multi_index", - "c_index", # TODO is "c_index" correct? what's the convention for zarr chunk keys? - ]), + flags=cast( + Sequence[np._NDIterFlagsKind], + [ + "refs_ok", + "multi_index", + "c_index", # TODO is "c_index" correct? what's the convention for zarr chunk keys? + ], + ), op_flags=cast(Sequence[Sequence[np._NDIterOpFlagsKind]], [["readonly"]] * 3), ) for path, offset, length in it: