Skip to content

Commit 3dc660e

Browse files
committed
mypy fixup
1 parent 208a55c commit 3dc660e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_string_accessors.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ def test_string_accessors_string_index():
174174
_check(assert_type(idx.str.zfill(10), "pd.Index[str]"))
175175
idx_bytes = pd.Index([b"a1", b"b2", b"c3"])
176176
_check(assert_type(idx_bytes.str.decode("utf-8"), "pd.Index[str]"))
177-
idx_list = pd.Index([["apple", "banana"], ["cherry", "date"], [1, "eggplant"]])
177+
idx_list: "pd.Index[list]" = pd.Index(
178+
[["apple", "banana"], ["cherry", "date"], [1, "eggplant"]]
179+
)
178180
_check(assert_type(idx_list.str.join("-"), "pd.Index[str]"))
179181

180182

0 commit comments

Comments
 (0)