File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,13 @@ class SparseBatchArray(TypedDict):
160160Sparse batch data can be a :class:`SparseBatchArray` or a :class:`SparseBatchColumnarData`.
161161"""
162162
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+
163170BatchColumnarData = DenseBatchColumnarData | SparseBatchColumnarData
164171"""
165172Batch columnar data is either a :class:`DenseBatchColumnarData` or a :class:`SparseBatchColumnarData`.
Original file line number Diff line number Diff line change 66Data types involving PGM datasets.
77
88Many 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.
1010"""
1111
12- from typing import TypeAlias
13-
1412from power_grid_model ._core .data_types import ( # pylint: disable=unused-import
1513 AsymValue ,
1614 AttributeType ,
4442 SparseBatchArray ,
4543 SparseBatchColumnarData ,
4644 SparseBatchData ,
45+ SparseDataComponentType ,
4746)
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