Skip to content

Commit 00832c1

Browse files
Manually apply ruff/pyupgrade rule UP030
UP030 Use implicit references for positional format fields
1 parent 693e11c commit 00832c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/zarr/core/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class VindexInvalidSelectionError(IndexError):
6868
_msg = (
6969
"unsupported selection type for vectorized indexing; only "
7070
"coordinate selection (tuple of integer arrays) and mask selection "
71-
"(single Boolean array) are supported; got {0!r}"
71+
"(single Boolean array) are supported; got {!r}"
7272
)
7373

7474

src/zarr/errors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ def __init__(self, *args: Any) -> None:
99

1010

1111
class ContainsGroupError(_BaseZarrError):
12-
_msg = "A group exists in store {0!r} at path {1!r}."
12+
_msg = "A group exists in store {!r} at path {!r}."
1313

1414

1515
class ContainsArrayError(_BaseZarrError):
16-
_msg = "An array exists in store {0!r} at path {1!r}."
16+
_msg = "An array exists in store {!r} at path {!r}."
1717

1818

1919
class ContainsArrayAndGroupError(_BaseZarrError):
2020
_msg = (
2121
"Array and group metadata documents (.zarray and .zgroup) were both found in store "
22-
"{0!r} at path {1!r}."
22+
"{!r} at path {!r}. "
2323
"Only one of these files may be present in a given directory / prefix. "
2424
"Remove the .zarray file, or the .zgroup file, or both."
2525
)

0 commit comments

Comments
 (0)