-
Notifications
You must be signed in to change notification settings - Fork 710
Expand file tree
/
Copy pathcore.pyi
More file actions
79 lines (55 loc) · 1.68 KB
/
core.pyi
File metadata and controls
79 lines (55 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""
Deeplake core types and functions
"""
from __future__ import annotations
import typing
__all__ = ["Dict", "IndexMapping64", "MemoryBuffer"]
class Dict:
def __getstate__(self: dict) -> dict:
...
def __setstate__(self: dict, arg0: dict) -> None:
...
def __eq__(self: dict, other: dict | dict) -> bool:
...
def __getitem__(self: dict, key: str) -> numpy.ndarray | list | dict | str | bytes | None | Array:
...
def __len__(self: dict) -> int:
...
def __ne__(self: dict, other: dict | dict) -> bool:
...
def __str__(self: dict) -> str:
...
def items(self: dict) -> list:
...
def keys(self: dict) -> list[str]:
...
def to_dict(self: dict, convert_numpy_to_list: bool = False) -> dict:
"""
Converts the deeplake dictionary to a standard Python dictionary.
Args:
convert_numpy_to_list: If True, convert numpy arrays to lists. Default is False.
"""
...
def __contains__(self: dict, key: str) -> bool:
...
class IndexMapping64:
def __getitem__(self, index: int) -> int: ...
def __getstate__(self) -> tuple:
...
def __iter__(self) -> typing.Iterator[int]:
...
def __len__(self) -> int:
...
def __setstate__(self, arg0: tuple) -> None:
...
class MemoryBuffer:
def __buffer__(self, flags):
"""
Return a buffer object that exposes the underlying memory of the object.
"""
...
def __release_buffer__(self, buffer):
"""
Release the buffer object that exposes the underlying memory of the object.
"""
...