Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Apply ruff/flynt rule FLY002
FLY002 Consider f-string instead of string join
  • Loading branch information
DimitriPapadopoulos committed Sep 25, 2024
commit e6d818c3bb8daf1b1193956b19be1f958075f83d
2 changes: 1 addition & 1 deletion src/zarr/core/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ async def _members(
async for child_key, val in obj._members(
max_depth=max_depth, current_depth=current_depth + 1
):
yield "/".join([key, child_key]), val
yield f"{key}/{child_key}", val
except KeyError:
# keyerror is raised when `key` names an object (in the object storage sense),
# as opposed to a prefix, in the store under the prefix associated with this group
Expand Down
2 changes: 1 addition & 1 deletion src/zarr/store/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,6 @@ async def list_prefix(self, prefix: str) -> AsyncGenerator[str, None]:
AsyncGenerator[str, None]
"""

find_str = "/".join([self.path, prefix])
find_str = f"{self.path}/{prefix}"
for onefile in await self.fs._find(find_str, detail=False, maxdepth=None, withdirs=False):
yield onefile.removeprefix(find_str)