fix mypy annotations for arithmetic_analysis (#6040)

* fixed mypy annotations for arithmetic_analysis

* shortened numpy references
This commit is contained in:
Leoriem-code
2022-05-12 05:35:56 +02:00
committed by GitHub
parent e23c18fb5c
commit 533eea5afa
4 changed files with 29 additions and 14 deletions

View File

@ -6,9 +6,13 @@ Reference:
from __future__ import annotations
import numpy as np
import numpy.typing as NDArray
from numpy import float64
def lower_upper_decomposition(table: np.ndarray) -> tuple[np.ndarray, np.ndarray]:
def lower_upper_decomposition(
table: NDArray[float64],
) -> tuple[NDArray[float64], NDArray[float64]]:
"""Lower-Upper (LU) Decomposition
Example: