Skip to content

Commit 8fad281

Browse files
committed
fix mypy errora
Signed-off-by: R. Garcia-Dias <[email protected]>
1 parent ce798d7 commit 8fad281

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/transforms/test_gibbs_noise.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525

2626
_, has_torch_fft = optional_import("torch.fft", name="fftshift")
2727

28-
TEST_CASES = dict_product(shape=((128, 64), (64, 48, 80)), input_type=TEST_NDARRAYS if has_torch_fft else [np.array])
29-
TEST_CASES = [[p_dict["shape"], p_dict["input_type"]] for p_dict in TEST_CASES]
28+
shapes = ((128, 64), (64, 48, 80))
29+
input_types = TEST_NDARRAYS if has_torch_fft else [np.array]
30+
TEST_CASES = [[p_dict["shape"], p_dict["input_type"]] for p_dict in dict_product(shape=shapes, input_type=input_types)]
3031

3132

3233
class TestGibbsNoise(unittest.TestCase):

0 commit comments

Comments
 (0)