Coverage for src/ipyvizzu/data/converters/numpy/type_alias.py: 100%
13 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-10-12 08:13 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-10-12 08:13 +0000
1"""
2This module provides typing aliases for numpy converter.
3"""
5from typing import Dict, TypeVar, Union
8Index = int
9"""Represents the index of a column."""
11Name = str
12"""Represents the name of a column."""
14DType = type
15"""Represents the dtype of a column."""
17ColumnName = Union[Name, Dict[Index, Name]]
18"""
19Represents a column name. It is a dictionary of Index:Name pairs
20or for single-dimensional arrays, it can be just a Name.
21"""
23ColumnDtype = Union[DType, Dict[Index, DType]]
24"""
25Represents a column dtype. It is a dictionary of Index:DType pairs
26or for single-dimensional arrays, it can be just a DType.
27"""
29ColumnConfig = TypeVar("ColumnConfig", Name, DType)
30"""
31Represents a column config. It can be Name or DType.
32"""