Skip to content

Commit

Permalink
Silence mypy errors about variances being optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterdavid committed Jun 12, 2021
1 parent cac5a29 commit c4e89b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_root.py
Expand Up @@ -18,7 +18,7 @@ def test_root_th1f_convert() -> None:
assert all(th.GetBinContent(i + 1) == approx(iv) for i, iv in enumerate(h.values()))
assert all(
th.GetBinError(i + 1) == approx(ie)
for i, ie in enumerate(np.sqrt(h.variances()))
for i, ie in enumerate(np.sqrt(h.variances())) # type: ignore
)


Expand All @@ -34,6 +34,6 @@ def test_root_th2f_convert() -> None:
)
assert all(
th.GetBinError(i + 1, j + 1) == approx(ie)
for i, row in enumerate(np.sqrt(h.variances()))
for i, row in enumerate(np.sqrt(h.variances())) # type: ignore
for j, ie in enumerate(row)
)

0 comments on commit c4e89b3

Please sign in to comment.