[Fix] Simplify type annotations in input modules

This commit is contained in:
Fabian Joswig 2025-01-03 23:15:40 +01:00
commit 6d5a9b9d83
3 changed files with 25 additions and 22 deletions

View file

@ -710,7 +710,7 @@ def total_least_squares(x: list[Obs], y: list[Obs], func: Callable, silent: bool
return output
def fit_lin(x: list[Union[Obs, int, float]], y: list[Obs], **kwargs) -> list[Obs]:
def fit_lin(x: Sequence[Union[Obs, int, float]], y: Sequence[Obs], **kwargs) -> list[Obs]:
"""Performs a linear fit to y = n + m * x and returns two Obs n, m.
Parameters