Skip to content

Commit 3204558

Browse files
committed
fix: change index parameter to list[str] for type compatibility
1 parent 708541c commit 3204558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4738,7 +4738,7 @@ def test_from_records() -> None:
47384738
# test with single dictionary
47394739
data_single_dict = {"id": 1, "name": "a"}
47404740
check(
4741-
assert_type(pd.DataFrame.from_records(data_single_dict, index=[0]), pd.DataFrame),
4741+
assert_type(pd.DataFrame.from_records(data_single_dict, index=["0"]), pd.DataFrame),
47424742
pd.DataFrame,
47434743
)
47444744

0 commit comments

Comments
 (0)