Skip to content

Commit f2d2683

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 85c9b5f commit f2d2683

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
@@ -329,7 +329,7 @@ def supports_listing(self) -> bool:
329329
...
330330

331331
@abstractmethod
332-
def list(self) -> AsyncGenerator[str, None]:
332+
async def list(self) -> AsyncGenerator[str, None]:
333333
"""Retrieve all keys in the store.
334334
335335
Returns
@@ -339,7 +339,7 @@ def list(self) -> AsyncGenerator[str, None]:
339339
...
340340

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

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

0 commit comments

Comments
 (0)