mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-12-15 11:51:50 +01:00
[Fix] Simplify type annotations in input modules
This commit is contained in:
parent
b8700ef962
commit
6d5a9b9d83
3 changed files with 25 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue