Skip to content

Commit 231b54d

Browse files
committed
fixup
1 parent 92dc75d commit 231b54d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_series.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from collections.abc import (
44
Iterable,
55
Iterator,
6-
Mapping,
76
Sequence,
87
)
98
import datetime
@@ -1659,9 +1658,8 @@ def test_string_accessors():
16591658
check(assert_type(s.str.strip(), "pd.Series[str]"), pd.Series, str)
16601659
check(assert_type(s.str.swapcase(), "pd.Series[str]"), pd.Series, str)
16611660
check(assert_type(s.str.title(), "pd.Series[str]"), pd.Series, str)
1662-
translation_table: Mapping = str.maketrans({"ñ": "n", "ç": "c"})
16631661
check(
1664-
assert_type(s.str.translate(translation_table), "pd.Series[str]"),
1662+
assert_type(s.str.translate({241: "n"}), "pd.Series[str]"),
16651663
pd.Series,
16661664
str,
16671665
)

0 commit comments

Comments
 (0)