Skip to content

Commit

Permalink
remove ignore statements
Browse files Browse the repository at this point in the history
  • Loading branch information
gatoniel committed Aug 11, 2023
1 parent 571a8ce commit 9f07f3e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
14 changes: 4 additions & 10 deletions tests/test_data_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,15 @@ def test_getitem(
slice_x1 = slice(i * n_channel, (i + 1) * n_channel)
slice_x2 = slice((i + 1) * n_channel, (i + 2) * n_channel)

np.testing.assert_equal( # type: ignore [no-untyped-call]
new_x[..., slice_x1], new_x[..., slice_x2]
)
np.testing.assert_equal(new_x[..., slice_x1], new_x[..., slice_x2])

np.testing.assert_equal( # type: ignore [no-untyped-call]
probs[..., i], probs[..., i + 1]
)
np.testing.assert_equal(probs[..., i], probs[..., i + 1])

slice_y1 = slice(i * n_rays, (i + 1) * n_rays)
slice_y2 = slice((i + 1) * n_rays, (i + 2) * n_rays)

np.testing.assert_equal( # type: ignore [no-untyped-call]
dists[..., slice_y1], dists[..., slice_y2]
)
np.testing.assert_equal(dists[..., slice_y1], dists[..., slice_y2])

np.testing.assert_equal( # type: ignore [no-untyped-call]
np.testing.assert_equal(
dists[..., mask_start + i], dists[..., mask_start + i + 1]
)
4 changes: 2 additions & 2 deletions tests/test_model_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def test_model_conf_train_predict(
img = np.repeat(img[..., np.newaxis], n_channel, axis=-1)

imgs = [
np.copy(img), # type: ignore [no-untyped-call]
np.copy(img), # type: ignore [no-untyped-call]
np.copy(img),
np.copy(img),
img,
]

Expand Down
4 changes: 2 additions & 2 deletions tests/test_model_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def test_model_conf_train_predict(
img = np.squeeze(img)

imgs = [
np.copy(img), # type: ignore [no-untyped-call]
np.copy(img), # type: ignore [no-untyped-call]
np.copy(img),
np.copy(img),
img,
]

Expand Down

0 comments on commit 9f07f3e

Please sign in to comment.