Source code for plaid.types.feature_types

"""Custom types for features."""

# -*- coding: utf-8 -*-
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
#
#

import sys
from typing import Union

if sys.version_info >= (3, 11):
    from typing import TypeAlias
else:  # pragma: no cover
    from typing_extensions import TypeAlias


from plaid.types.common import Array

# Physical data types
[docs] Scalar: TypeAlias = Union[float, int]
[docs] Field: TypeAlias = Array
[docs] TimeSequence: TypeAlias = Array
# Feature data types
[docs] Feature: TypeAlias = Union[Scalar, Field, Array]