-
-
Notifications
You must be signed in to change notification settings - Fork 404
Expand file tree
/
Copy pathtypes.py
More file actions
87 lines (79 loc) · 1.83 KB
/
types.py
File metadata and controls
87 lines (79 loc) · 1.83 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
80
81
82
83
84
85
86
87
from typing import Any
from zarr.core.array import (
Array,
AsyncArray,
CompressorLike,
CompressorsLike,
FiltersLike,
SerializerLike,
ShardsLike,
)
from zarr.core.array_spec import ArrayConfigLike
from zarr.core.buffer import NDArrayLikeOrScalar
from zarr.core.chunk_key_encodings import ChunkKeyEncodingLike
from zarr.core.common import (
JSON,
AccessModeLiteral,
BytesLike,
ChunksLike,
DimensionNamesLike,
MemoryOrder,
NodeType,
ShapeLike,
ZarrFormat,
)
from zarr.core.dtype import ZDTypeLike
from zarr.core.indexing import (
BasicSelection,
CoordinateSelection,
Fields,
MaskSelection,
OrthogonalSelection,
Selection,
)
from zarr.core.metadata.v2 import ArrayV2Metadata
from zarr.core.metadata.v3 import ArrayV3Metadata
__all__ = [
"JSON",
"AccessModeLiteral",
"AnyArray",
"AnyAsyncArray",
"ArrayConfigLike",
"ArrayV2",
"ArrayV3",
"AsyncArrayV2",
"AsyncArrayV3",
"BasicSelection",
"BytesLike",
"ChunkKeyEncodingLike",
"ChunksLike",
"CompressorLike",
"CompressorsLike",
"CoordinateSelection",
"DimensionNamesLike",
"Fields",
"FiltersLike",
"MaskSelection",
"MemoryOrder",
"NDArrayLikeOrScalar",
"NodeType",
"OrthogonalSelection",
"Selection",
"SerializerLike",
"ShapeLike",
"ShardsLike",
"ZDTypeLike",
"ZarrFormat",
]
type AnyAsyncArray = AsyncArray[Any]
"""A Zarr format 2 or 3 `AsyncArray`"""
type AsyncArrayV2 = AsyncArray[ArrayV2Metadata]
"""A Zarr format 2 `AsyncArray`"""
type AsyncArrayV3 = AsyncArray[ArrayV3Metadata]
"""A Zarr format 3 `AsyncArray`"""
type AnyArray = Array[Any]
"""A Zarr format 2 or 3 `Array`"""
type ArrayV2 = Array[ArrayV2Metadata]
"""A Zarr format 2 `Array`"""
type ArrayV3 = Array[ArrayV3Metadata]
"""A Zarr format 3 `Array`"""