Skip to content

Commit 497b0f2

Browse files
committed
fixup
1 parent 93109dd commit 497b0f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/indexes/test_multi_indexes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import numpy as np
34
import pandas as pd
45
from typing_extensions import (
56
assert_type,
@@ -45,7 +46,7 @@ def test_multiindex_set_codes() -> None:
4546
def test_multiindex_view() -> None:
4647
mi = pd.MultiIndex.from_arrays([[1, 2, 3], [4, 5, 6]])
4748
check(assert_type(mi.view(), pd.MultiIndex), pd.MultiIndex)
48-
check(assert_type(mi.view(pd.Index), pd.MultiIndex), pd.MultiIndex)
49+
check(assert_type(mi.view(np.ndarray), pd.MultiIndex), pd.MultiIndex)
4950

5051

5152
def test_multiindex_remove_unused_levels() -> None:

0 commit comments

Comments
 (0)