From cfce16cd0b1c5f06384e8e142b22be45bde022bd Mon Sep 17 00:00:00 2001 From: David Stansby Date: Mon, 8 Sep 2025 15:07:56 +0100 Subject: [PATCH] Document that copy() functions are not implemented --- src/zarr/api/asynchronous.py | 9 +++++++++ src/zarr/api/synchronous.py | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/zarr/api/asynchronous.py b/src/zarr/api/asynchronous.py index 409601e474..dcfadf6a3f 100644 --- a/src/zarr/api/asynchronous.py +++ b/src/zarr/api/asynchronous.py @@ -250,14 +250,23 @@ async def consolidate_metadata( async def copy(*args: Any, **kwargs: Any) -> tuple[int, int, int]: + """ + Not implemented. + """ raise NotImplementedError async def copy_all(*args: Any, **kwargs: Any) -> tuple[int, int, int]: + """ + Not implemented. + """ raise NotImplementedError async def copy_store(*args: Any, **kwargs: Any) -> tuple[int, int, int]: + """ + Not implemented. + """ raise NotImplementedError diff --git a/src/zarr/api/synchronous.py b/src/zarr/api/synchronous.py index 1146a6876f..1e47208dcc 100644 --- a/src/zarr/api/synchronous.py +++ b/src/zarr/api/synchronous.py @@ -112,14 +112,23 @@ def consolidate_metadata( def copy(*args: Any, **kwargs: Any) -> tuple[int, int, int]: + """ + Not implemented. + """ return sync(async_api.copy(*args, **kwargs)) def copy_all(*args: Any, **kwargs: Any) -> tuple[int, int, int]: + """ + Not implemented. + """ return sync(async_api.copy_all(*args, **kwargs)) def copy_store(*args: Any, **kwargs: Any) -> tuple[int, int, int]: + """ + Not implemented. + """ return sync(async_api.copy_store(*args, **kwargs))