Skip to content

Commit 2d004e3

Browse files
simonjayhawkinsrhshadrach
authored andcommitted
TYP/CLN: remove #type: ignore from pandas\tests\test_strings.py (pandas-dev#33862)
1 parent 52af028 commit 2d004e3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas/conftest.py

+4
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ def index_or_series(request):
297297
return request.param
298298

299299

300+
# Generate cartesian product of index_or_series fixture:
301+
index_or_series2 = index_or_series
302+
303+
300304
@pytest.fixture
301305
def dict_subclass():
302306
"""

pandas/tests/test_strings.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -671,14 +671,10 @@ def test_str_cat_align_mixed_inputs(self, join):
671671
with pytest.raises(ValueError, match=rgx):
672672
s.str.cat([t, z], join=join)
673673

674-
index_or_series2 = [Series, Index] # type: ignore
675-
# List item 0 has incompatible type "Type[Series]"; expected "Type[PandasObject]"
676-
# See GH#29725
677-
678-
@pytest.mark.parametrize("other", index_or_series2)
679-
def test_str_cat_all_na(self, index_or_series, other):
674+
def test_str_cat_all_na(self, index_or_series, index_or_series2):
680675
# GH 24044
681676
box = index_or_series
677+
other = index_or_series2
682678

683679
# check that all NaNs in caller / target work
684680
s = Index(["a", "b", "c", "d"])

0 commit comments

Comments
 (0)