File tree 6 files changed +9
-9
lines changed 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class VindexInvalidSelectionError(IndexError):
68
68
_msg = (
69
69
"unsupported selection type for vectorized indexing; only "
70
70
"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}"
72
72
)
73
73
74
74
Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ def __init__(self, *args: Any) -> None:
9
9
10
10
11
11
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}."
13
13
14
14
15
15
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}."
17
17
18
18
19
19
class ContainsArrayAndGroupError (_BaseZarrError ):
20
20
_msg = (
21
21
"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}. "
23
23
"Only one of these files may be present in a given directory / prefix. "
24
24
"Remove the .zarray file, or the .zgroup file, or both."
25
25
)
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ def __str__(self) -> str:
140
140
return _dereference_path (str (self .store ), self .path )
141
141
142
142
def __repr__ (self ) -> str :
143
- return f"StorePath({ self .store .__class__ .__name__ } , { str ( self )!r } )"
143
+ return f"StorePath({ self .store .__class__ .__name__ } , ' { self } ' )"
144
144
145
145
def __eq__ (self , other : object ) -> bool :
146
146
"""
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def __str__(self) -> str:
135
135
return f"file://{ self .root .as_posix ()} "
136
136
137
137
def __repr__ (self ) -> str :
138
- return f"LocalStore({ str ( self )!r } )"
138
+ return f"LocalStore(' { self } ' )"
139
139
140
140
def __eq__ (self , other : object ) -> bool :
141
141
return isinstance (other , type (self )) and self .root == other .root
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def __str__(self) -> str:
71
71
return f"memory://{ id (self ._store_dict )} "
72
72
73
73
def __repr__ (self ) -> str :
74
- return f"MemoryStore({ str ( self )!r } )"
74
+ return f"MemoryStore(' { self } ' )"
75
75
76
76
def __eq__ (self , other : object ) -> bool :
77
77
return (
@@ -210,7 +210,7 @@ def __str__(self) -> str:
210
210
return f"gpumemory://{ id (self ._store_dict )} "
211
211
212
212
def __repr__ (self ) -> str :
213
- return f"GpuMemoryStore({ str ( self )!r } )"
213
+ return f"GpuMemoryStore(' { self } ' )"
214
214
215
215
@classmethod
216
216
def from_dict (cls , store_dict : MutableMapping [str , Buffer ]) -> Self :
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ def __str__(self) -> str:
134
134
return f"zip://{ self .path } "
135
135
136
136
def __repr__ (self ) -> str :
137
- return f"ZipStore({ str ( self )!r } )"
137
+ return f"ZipStore(' { self } ' )"
138
138
139
139
def __eq__ (self , other : object ) -> bool :
140
140
return isinstance (other , type (self )) and self .path == other .path
You can’t perform that action at this time.
0 commit comments