Skip to content

Commit d39634a

Browse files
committed
Ignore type annotation error, due to know zfit limitation
1 parent 66fd926 commit d39634a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dmu/stats/utilities.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,8 @@ def zres_to_cres(res : zres, fall_back_error : float|None = None) -> DictConfig:
840840

841841
par = res.params
842842
try:
843-
d_par = { name : _reformat_values(d_par=d_par, fall_back_error=fall_back_error) for name, d_par in par.items()}
843+
# TODO: Remove ignore once we figure out how to deal properly with typing issues in zfit
844+
d_par = { name : _reformat_values(d_par=d_par, fall_back_error=fall_back_error) for name, d_par in par.items()} # type: ignore
844845
except KeyError as exc:
845846
print(res)
846847
raise KeyError('Fit parameters cannot be used') from exc

0 commit comments

Comments
 (0)