File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
pandas-stubs/core/indexes Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,23 @@ from collections.abc import (
22 Hashable ,
33 Iterable ,
44)
5- from typing import (
6- Any ,
7- final ,
8- )
5+ from typing import final
96
10- from numpy import typing as npt
11- from pandas .core import accessor
7+ import numpy as np
8+ from pandas .core . accessor import PandasDelegate
129from pandas .core .arrays .categorical import Categorical
1310from pandas .core .indexes .base import Index
1411from pandas .core .indexes .extension import ExtensionIndex
1512from typing_extensions import Self
1613
17- from pandas ._typing import S1
14+ from pandas ._typing import (
15+ S1 ,
16+ np_1darray ,
17+ )
1818
19- class CategoricalIndex (ExtensionIndex [S1 ], accessor . PandasDelegate ):
20- codes : npt . NDArray [ Any ] = ...
21- categories : Index = ...
19+ class CategoricalIndex (ExtensionIndex [S1 ], PandasDelegate ):
20+ codes : np_1darray [ np . intp ] = ...
21+ categories : Index [ S1 ] = ...
2222 @property
2323 def array (self ) -> Categorical : ... # type: ignore[override] # pyrefly: ignore[bad-override]
2424 def __new__ (
You can’t perform that action at this time.
0 commit comments