Skip to content

Commit 17e280f

Browse files
committed
annotate idx2 as per mypys request
1 parent b4839a0 commit 17e280f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test

-2
This file was deleted.

tests/test_string_accessors.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ def test_string_accessors_string_index():
169169
idx = pd.Index([b"a1", b"b2", b"c3"])
170170
_check = functools.partial(check, klass=pd.Index, dtype=str)
171171
_check(assert_type(idx.str.decode("utf-8"), "pd.Index[str]"))
172-
idx2 = pd.Index([["apple", "banana"], ["cherry", "date"], [1, "eggplant"]])
172+
idx2: "pd.Index[list]" = pd.Index(
173+
[["apple", "banana"], ["cherry", "date"], [1, "eggplant"]]
174+
)
173175
_check(assert_type(idx2.str.join("-"), "pd.Index[str]"))
174176

175177

0 commit comments

Comments
 (0)