Fix mypy type errors and black formatting

- spectrum.py: Use Axes from TYPE_CHECKING instead of plt.Axes
- fitter.py: Remove unused type: ignore comment
- phase_space.py: Black formatting
This commit is contained in:
2026-05-05 14:01:28 +03:00
parent d6328d4b24
commit 5ac004352b
3 changed files with 19 additions and 17 deletions
+1 -1
View File
@@ -405,7 +405,7 @@ class CurveFitter:
if bounds is not None:
ls_kwargs["bounds"] = bounds_array
result = least_squares(**ls_kwargs) # type: ignore[arg-type]
result = least_squares(**ls_kwargs)
# Compute covariance matrix from Jacobian
# Cov = (J^T J)^(-1) * χ² / (n - p)