Skip to content

Commit c90c23a

Browse files
Make methods of abstract base class async
The goal is that the async methods of child classes match the signatures of the methods of the abstract base class.
1 parent 4c3081c commit c90c23a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zarr/abc/store.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def supports_listing(self) -> bool:
330330
...
331331

332332
@abstractmethod
333-
def list(self) -> AsyncGenerator[str, None]:
333+
async def list(self) -> AsyncGenerator[str, None]:
334334
"""Retrieve all keys in the store.
335335
336336
Returns
@@ -340,7 +340,7 @@ def list(self) -> AsyncGenerator[str, None]:
340340
...
341341

342342
@abstractmethod
343-
def list_prefix(self, prefix: str) -> AsyncGenerator[str, None]:
343+
async def list_prefix(self, prefix: str) -> AsyncGenerator[str, None]:
344344
"""
345345
Retrieve all keys in the store that begin with a given prefix. Keys are returned with the
346346
common leading prefix removed.
@@ -356,7 +356,7 @@ def list_prefix(self, prefix: str) -> AsyncGenerator[str, None]:
356356
...
357357

358358
@abstractmethod
359-
def list_dir(self, prefix: str) -> AsyncGenerator[str, None]:
359+
async def list_dir(self, prefix: str) -> AsyncGenerator[str, None]:
360360
"""
361361
Retrieve all keys and prefixes with a given prefix and which do not contain the character
362362
“/” after the given prefix.

0 commit comments

Comments
 (0)