File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,13 @@ class SparseBatchArray(TypedDict):
160
160
Sparse batch data can be a :class:`SparseBatchArray` or a :class:`SparseBatchColumnarData`.
161
161
"""
162
162
163
+ SparseDataComponentType : TypeAlias = str
164
+ """
165
+ A string representing the component type of sparse data structures.
166
+
167
+ Must be either "data" or "indptr".
168
+ """
169
+
163
170
BatchColumnarData = DenseBatchColumnarData | SparseBatchColumnarData
164
171
"""
165
172
Batch columnar data is either a :class:`DenseBatchColumnarData` or a :class:`SparseBatchColumnarData`.
Original file line number Diff line number Diff line change 6
6
Data types involving PGM datasets.
7
7
8
8
Many data types are used throughout the power grid model project. In an attempt to clarify type hints, some types
9
- have been defined and explained.
9
+ are defined/exposed and explained.
10
10
"""
11
11
12
- from typing import TypeAlias
13
-
14
12
from power_grid_model ._core .data_types import ( # pylint: disable=unused-import
15
13
AsymValue ,
16
14
AttributeType ,
44
42
SparseBatchArray ,
45
43
SparseBatchColumnarData ,
46
44
SparseBatchData ,
45
+ SparseDataComponentType ,
47
46
)
48
-
49
- SparseDataComponentType : TypeAlias = str
50
- """
51
- A string representing the component type of sparse data structures.
52
-
53
- Must be either "data" or "indptr".
54
- """
You can’t perform that action at this time.
0 commit comments