Skip to content

Commit cb76ad9

Browse files
committed
Fix linting
1 parent 0e2ae83 commit cb76ad9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_funcs.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def test_empty_array(self, xp: ModuleType) -> None:
994994
assert xp.isdtype(nan_to_num(a, xp=xp).dtype, xp.float32)
995995

996996
@pytest.mark.parametrize(
997-
"in_vals,fill_value,out_vals",
997+
("in_vals", "fill_value", "out_vals"),
998998
[
999999
([1, 2, np.nan, 4], 3, [1.0, 2.0, 3.0, 4.0]),
10001000
([1, 2, np.nan, 4], 3.0, [1.0, 2.0, 3.0, 4.0]),
@@ -1070,7 +1070,11 @@ def test_fill_value_failure(self, xp: ModuleType) -> None:
10701070
TypeError,
10711071
match="Complex fill values are not supported",
10721072
):
1073-
nan_to_num(a, fill_value=complex(2, 2), xp=xp)
1073+
_ = nan_to_num(
1074+
a,
1075+
fill_value=complex(2, 2), # type: ignore[arg-type] # pyright: ignore[reportArgumentType]
1076+
xp=xp,
1077+
)
10741078

10751079

10761080
class TestNUnique:

0 commit comments

Comments
 (0)