From d6a60a73ca24c5ae93e0ec6d3f1f04aa922a4dff Mon Sep 17 00:00:00 2001 From: Sasun Hambardzumyan <151129343+khustup2@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:04:07 +0400 Subject: [PATCH] v4.0.2 api. (#2986) --- python/deeplake/__init__.py | 5 ++--- python/deeplake/__init__.pyi | 6 +++--- python/deeplake/types.pyi | 10 ---------- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/python/deeplake/__init__.py b/python/deeplake/__init__.py index 121609673d..37019dc04e 100644 --- a/python/deeplake/__init__.py +++ b/python/deeplake/__init__.py @@ -5,9 +5,8 @@ import deeplake from ._deeplake import * -from ._deeplake import _deepcopy -__version__ = "4.0.1" +__version__ = "4.0.2" __all__ = [ "__version__", @@ -93,7 +92,7 @@ "core", "create", "create_async", - "_deepcopy", + "copy", "delete", "formats", "exists", diff --git a/python/deeplake/__init__.pyi b/python/deeplake/__init__.pyi index bab4244509..6ba6acc7c6 100644 --- a/python/deeplake/__init__.pyi +++ b/python/deeplake/__init__.pyi @@ -90,7 +90,7 @@ __all__ = [ "core", "create", "create_async", - "_deepcopy", + "copy", "delete", "formats", "exists", @@ -1899,7 +1899,7 @@ def create_async(url: str, creds: dict[str, str] | None = None, token: str | Non ValueError: if a dataset already exists at the given URL (will be raised when the future is awaited) """ -def _deepcopy(src: str, dst: str, src_creds: dict[str, str] | None = None, dst_creds: dict[str, str] | None = None, +def copy(src: str, dst: str, src_creds: dict[str, str] | None = None, dst_creds: dict[str, str] | None = None, token: str | None = None,) -> None: """ Copies the dataset at the source URL to the destination URL. @@ -1914,7 +1914,7 @@ def _deepcopy(src: str, dst: str, src_creds: dict[str, str] | None = None, dst_c token (str, optional): Activeloop token, used for fetching credentials to the dataset at path if it is a Deep Lake dataset. This is optional, tokens are normally autogenerated. Examples: - >>> deeplake._deepcopy("al://organization_id/source_dataset", "al://organization_id/destination_dataset") + >>> deeplake.copy("al://organization_id/source_dataset", "al://organization_id/destination_dataset") """ diff --git a/python/deeplake/types.pyi b/python/deeplake/types.pyi index 31e3361da9..fe33f016e4 100644 --- a/python/deeplake/types.pyi +++ b/python/deeplake/types.pyi @@ -425,16 +425,6 @@ def Image(dtype: DataType | str = "uint8", sample_compression: str = "png") -> T ... -@typing.overload -def BoundingBox(dtype: DataType | str = "float32") -> Type: ... - - -@typing.overload -def BoundingBox( - dtype: DataType | str, format: str, bbox_type: str | None = None -) -> Type: ... - - def BoundingBox( dtype: DataType | str = "float32", format: str | None = None,