Source code for exosim.utils.types

from typing import TypeVar

import astropy.units as u
import numpy as np

[docs]ArrayType = TypeVar("ArrayType", np.ndarray, u.Quantity)
[docs]ValueType = TypeVar("ValueType", float, u.Quantity)
[docs]UnitType = TypeVar("UnitType", str, u.Quantity)
[docs]HDF5OutputType = TypeVar("HDF5OutputType", "HDF5Output", "HDF5OutputGroup") # type: ignore # noqa: F821
[docs]OutputType = TypeVar("OutputType", "Output", "OutputGroup") # type: ignore # noqa: F821