Skip to content

Commit 2e20948

Browse files
Apply Pylint rule W2301 (unnecessary-ellipsis)
Unnecessary ellipsis constant
1 parent 72a42a8 commit 2e20948

File tree

5 files changed

+0
-28
lines changed

5 files changed

+0
-28
lines changed

src/zarr/abc/codec.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def compute_encoded_size(self, input_byte_length: int, chunk_spec: ArraySpec) ->
8686
-------
8787
int
8888
"""
89-
...
9089

9190
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
9291
"""Computed the spec of the chunk after it has been encoded by the codec.
@@ -289,7 +288,6 @@ def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
289288
-------
290289
Self
291290
"""
292-
...
293291

294292
@classmethod
295293
@abstractmethod
@@ -304,7 +302,6 @@ def from_codecs(cls, codecs: Iterable[Codec]) -> Self:
304302
-------
305303
Self
306304
"""
307-
...
308305

309306
@classmethod
310307
def from_array_metadata_and_store(cls, array_metadata: ArrayMetadata, store: Store) -> Self:
@@ -353,7 +350,6 @@ def validate(
353350
chunk_grid : ChunkGrid
354351
The array chunk grid
355352
"""
356-
...
357353

358354
@abstractmethod
359355
def compute_encoded_size(self, byte_length: int, array_spec: ArraySpec) -> int:
@@ -369,7 +365,6 @@ def compute_encoded_size(self, byte_length: int, array_spec: ArraySpec) -> int:
369365
-------
370366
int
371367
"""
372-
...
373368

374369
@abstractmethod
375370
async def decode(
@@ -388,7 +383,6 @@ async def decode(
388383
-------
389384
Iterable[NDBuffer | None]
390385
"""
391-
...
392386

393387
@abstractmethod
394388
async def encode(
@@ -407,7 +401,6 @@ async def encode(
407401
-------
408402
Iterable[Buffer | None]
409403
"""
410-
...
411404

412405
@abstractmethod
413406
async def read(
@@ -434,7 +427,6 @@ async def read(
434427
435428
out : NDBuffer
436429
"""
437-
...
438430

439431
@abstractmethod
440432
async def write(
@@ -457,7 +449,6 @@ async def write(
457449
The chunk spec contains information about the chunk.
458450
value : NDBuffer
459451
"""
460-
...
461452

462453

463454
async def _batching_helper(

src/zarr/abc/numcodec.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def encode(self, buf: Any) -> Any:
2626
enc: Any
2727
Encoded data.
2828
"""
29-
...
3029

3130
def decode(self, buf: Any, out: Any | None = None) -> Any:
3231
"""
@@ -45,14 +44,12 @@ def decode(self, buf: Any, out: Any | None = None) -> Any:
4544
dec : Any
4645
Decoded data.
4746
"""
48-
...
4947

5048
def get_config(self) -> Any:
5149
"""
5250
Return a JSON-serializable configuration dictionary for this
5351
codec. Must include an ``'id'`` field with the codec identifier.
5452
"""
55-
...
5653

5754
@classmethod
5855
def from_config(cls, config: Any) -> Self:
@@ -64,7 +61,6 @@ def from_config(cls, config: Any) -> Self:
6461
config : Any
6562
A configuration dictionary for this codec.
6663
"""
67-
...
6864

6965

7066
def _is_numcodec_cls(obj: object) -> TypeGuard[type[Numcodec]]:

src/zarr/abc/store.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ def _check_writable(self) -> None:
178178
@abstractmethod
179179
def __eq__(self, value: object) -> bool:
180180
"""Equality comparison."""
181-
...
182181

183182
@abstractmethod
184183
async def get(
@@ -204,7 +203,6 @@ async def get(
204203
-------
205204
Buffer
206205
"""
207-
...
208206

209207
@abstractmethod
210208
async def get_partial_values(
@@ -225,7 +223,6 @@ async def get_partial_values(
225223
-------
226224
list of values, in the order of the key_ranges, may contain null/none for missing keys
227225
"""
228-
...
229226

230227
@abstractmethod
231228
async def exists(self, key: str) -> bool:
@@ -239,13 +236,11 @@ async def exists(self, key: str) -> bool:
239236
-------
240237
bool
241238
"""
242-
...
243239

244240
@property
245241
@abstractmethod
246242
def supports_writes(self) -> bool:
247243
"""Does the store support writes?"""
248-
...
249244

250245
@abstractmethod
251246
async def set(self, key: str, value: Buffer) -> None:
@@ -256,7 +251,6 @@ async def set(self, key: str, value: Buffer) -> None:
256251
key : str
257252
value : Buffer
258253
"""
259-
...
260254

261255
async def set_if_not_exists(self, key: str, value: Buffer) -> None:
262256
"""
@@ -296,7 +290,6 @@ def supports_consolidated_metadata(self) -> bool:
296290
@abstractmethod
297291
def supports_deletes(self) -> bool:
298292
"""Does the store support deletes?"""
299-
...
300293

301294
@abstractmethod
302295
async def delete(self, key: str) -> None:
@@ -306,7 +299,6 @@ async def delete(self, key: str) -> None:
306299
----------
307300
key : str
308301
"""
309-
...
310302

311303
@property
312304
def supports_partial_writes(self) -> Literal[False]:
@@ -320,7 +312,6 @@ def supports_partial_writes(self) -> Literal[False]:
320312
@abstractmethod
321313
def supports_listing(self) -> bool:
322314
"""Does the store support listing?"""
323-
...
324315

325316
@abstractmethod
326317
def list(self) -> AsyncIterator[str]:

src/zarr/core/buffer/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ def as_numpy_array(self) -> npt.NDArray[Any]:
253253
-------
254254
NumPy array of this buffer (might be a data copy)
255255
"""
256-
...
257256

258257
def as_buffer_like(self) -> BytesLike:
259258
"""Returns the buffer as an object that implements the Python buffer protocol.
@@ -296,7 +295,6 @@ def __len__(self) -> int:
296295
@abstractmethod
297296
def __add__(self, other: Buffer) -> Self:
298297
"""Concatenate two buffers"""
299-
...
300298

301299
def __eq__(self, other: object) -> bool:
302300
# Another Buffer class can override this to choose a more efficient path
@@ -469,7 +467,6 @@ def as_numpy_array(self) -> npt.NDArray[Any]:
469467
-------
470468
NumPy array of this buffer (might be a data copy)
471469
"""
472-
...
473470

474471
def as_scalar(self) -> ScalarType:
475472
"""Returns the buffer as a scalar value"""

src/zarr/testing/store.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ async def set(self, store: S, key: str, value: Buffer) -> None:
4545
This should not use any store methods. Bypassing the store methods allows them to be
4646
tested.
4747
"""
48-
...
4948

5049
@abstractmethod
5150
async def get(self, store: S, key: str) -> Buffer:
@@ -54,13 +53,11 @@ async def get(self, store: S, key: str) -> Buffer:
5453
This should not use any store methods. Bypassing the store methods allows them to be
5554
tested.
5655
"""
57-
...
5856

5957
@abstractmethod
6058
@pytest.fixture
6159
def store_kwargs(self, *args: Any, **kwargs: Any) -> dict[str, Any]:
6260
"""Kwargs for instantiating a store"""
63-
...
6461

6562
@abstractmethod
6663
def test_store_repr(self, store: S) -> None: ...

0 commit comments

Comments
 (0)