@@ -131,6 +131,7 @@ __all__ = [
131131 "create_async" ,
132132 "_create_global_cache" ,
133133 "delete" ,
134+ "delete_async" ,
134135 "disconnect" ,
135136 "exists" ,
136137 "explain_query" ,
@@ -2521,19 +2522,6 @@ class Dataset(DatasetView):
25212522 The history of the dataset.
25222523 """
25232524
2524- @property
2525- def _reader (self ) -> storage .Reader :
2526- """
2527- A [reader][deeplake.storage.Reader] that can be used to directly access files from the dataset's storage.
2528-
2529- Primarily used for debugging purposes.
2530- """
2531- ...
2532-
2533- @property
2534- def _datafiles (self ) -> list [tuple [str , int ]]:
2535- ...
2536-
25372525 @property
25382526 def id (self ) -> str :
25392527 """
@@ -2640,12 +2628,7 @@ class Dataset(DatasetView):
26402628 arg0 (dict): The pickled state used to restore the dataset.
26412629 """
26422630
2643- def add_column (
2644- self ,
2645- name : str ,
2646- dtype : types .DataType | str | types .Type | type | typing .Callable ,
2647- default_value : typing .Any = None ,
2648- ) -> None :
2631+ def add_column (self , name : str , dtype : typing .Any , default_value : typing .Any = None ) -> None :
26492632 """
26502633 Add a new column to the dataset.
26512634
@@ -3023,19 +3006,6 @@ class ReadOnlyDataset(DatasetView):
30233006 """
30243007 ...
30253008
3026- @property
3027- def _reader (self ) -> storage .Reader :
3028- """
3029- A [reader][deeplake.storage.Reader] that can be used to directly access files from the dataset's storage.
3030-
3031- Primarily used for debugging purposes.
3032- """
3033- ...
3034-
3035- @property
3036- def _datafiles (self ) -> list [tuple [str , int ]]:
3037- ...
3038-
30393009 @property
30403010 def id (self ) -> str :
30413011 """
@@ -3447,7 +3417,7 @@ def create(
34473417 url : str ,
34483418 creds : dict [str , str ] | None = None ,
34493419 token : str | None = None ,
3450- schema : dict [str , types . DataType | str | types . Type ] | None = None ,
3420+ schema : dict [str , typing . Any ] | typing . Any | None = None ,
34513421) -> Dataset :
34523422 """
34533423 Creates a new dataset at the given URL.
@@ -3527,7 +3497,7 @@ def create_async(
35273497 url : str ,
35283498 creds : dict [str , str ] | None = None ,
35293499 token : str | None = None ,
3530- schema : dict [str , types . DataType | str | types . Type ] | None = None ,
3500+ schema : dict [str , typing . Any ] | typing . Any | None = None ,
35313501) -> Future :
35323502 """
35333503 Asynchronously creates a new dataset at the given URL.
@@ -3641,6 +3611,19 @@ def delete(
36413611 It's recommended to use this operation with caution.
36423612 """
36433613
3614+ def delete_async (
3615+ url : str , creds : dict [str , str ] | None = None , token : str | None = None
3616+ ) -> FutureVoid :
3617+ """
3618+ Asynchronously deletes an existing dataset.
3619+
3620+ !!! warning
3621+ This operation is irreversible. All data will be lost.
3622+
3623+ If concurrent processes are attempting to write to the dataset while it's being deleted, it may lead to data inconsistency.
3624+ It's recommended to use this operation with caution.
3625+ """
3626+
36443627def exists (
36453628 url : str , creds : dict [str , str ] | None = None , token : str | None = None
36463629) -> bool :
0 commit comments