LennartNaeve_code/clean_diag/backend/trap_typing.py
2025-04-25 20:52:11 +02:00

6 lines
140 B
Python

import numpy as np
import numpy.typing as npt
# Type that allows both a number or an array
float_or_array = float | npt.NDArray[np.double]