Skip to content

Commit b244308

Browse files
committed
overloads cat
1 parent aca32d5 commit b244308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_string_accessors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def test_series_overloads_cat():
321321
pd.Series,
322322
str,
323323
)
324-
unknown_s = pd.DataFrame({"a": ["a", "b"]})["a"]
324+
unknown_s = pd.DataFrame({"a": list("abcdefg")})["a"]
325325
check(assert_type(s.str.cat(unknown_s, sep=";"), "pd.Series[str]"), pd.Series, str)
326326

327327

@@ -345,7 +345,7 @@ def test_index_overloads_cat():
345345
pd.Index,
346346
str,
347347
)
348-
unknown_idx = pd.DataFrame({"a": ["a", "b"]}).set_index("a").index
348+
unknown_idx = pd.DataFrame({"a": list("abcdefg")}).set_index("a").index
349349
check(
350350
assert_type(idx.str.cat(unknown_idx, sep=";"), "pd.Index[str]"), pd.Index, str
351351
)

0 commit comments

Comments
 (0)