From 30b1982f39ff594438b96297de3c0c0569435ee8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 23:04:37 +0000 Subject: [PATCH] style: pre-commit fixes --- src/zarr/storage/local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zarr/storage/local.py b/src/zarr/storage/local.py index 4ac99ad92d..ba13c2c661 100644 --- a/src/zarr/storage/local.py +++ b/src/zarr/storage/local.py @@ -226,7 +226,9 @@ async def list(self) -> AsyncGenerator[str, None]: async def list_prefix(self, prefix: str) -> AsyncGenerator[str, None]: # docstring inherited - to_strip = (self.root / prefix).as_posix() + "/" # TODO: fixme in https://github.com/zarr-developers/zarr-python/issues/2438 + to_strip = ( + (self.root / prefix).as_posix() + "/" + ) # TODO: fixme in https://github.com/zarr-developers/zarr-python/issues/2438 for p in (self.root / prefix).rglob("*"): if p.is_file(): yield p.as_posix().replace(to_strip, "")