Skip to content

Commit c6845da

Browse files
simonjayhawkinsjbrockmendel
authored andcommitted
TYP/CLN: remove #type: ignore from pandas\tests\base\test_conversion.py (pandas-dev#33864)
1 parent 306044b commit c6845da

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/tests/base/test_conversion.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,11 @@ def test_to_numpy_dtype(as_series):
391391
),
392392
],
393393
)
394-
@pytest.mark.parametrize("container", [pd.Series, pd.Index]) # type: ignore
395-
def test_to_numpy_na_value_numpy_dtype(container, values, dtype, na_value, expected):
396-
s = container(values)
397-
result = s.to_numpy(dtype=dtype, na_value=na_value)
394+
def test_to_numpy_na_value_numpy_dtype(
395+
index_or_series, values, dtype, na_value, expected
396+
):
397+
obj = index_or_series(values)
398+
result = obj.to_numpy(dtype=dtype, na_value=na_value)
398399
expected = np.array(expected)
399400
tm.assert_numpy_array_equal(result, expected)
400401

0 commit comments

Comments
 (0)