File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ from typing import (
18
18
)
19
19
20
20
import numpy as np
21
- from numpy import typing as npt
22
21
from pandas import (
23
22
DataFrame ,
24
23
DatetimeIndex ,
@@ -261,7 +260,7 @@ class Index(IndexOpsMixin[S1]):
261
260
** kwargs ,
262
261
) -> Self : ...
263
262
@property
264
- def str (self ) -> StringMethods [Self , MultiIndex , npt . NDArray [ np . bool_ ] ]: ...
263
+ def str (self ) -> StringMethods [Self , MultiIndex , np_ndarray_bool ]: ...
265
264
def is_ (self , other ) -> bool : ...
266
265
def __len__ (self ) -> int : ...
267
266
def __array__ (self , dtype = ...) -> np .ndarray : ...
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ from typing import (
12
12
)
13
13
14
14
import numpy as np
15
- from numpy import typing as npt
16
15
import pandas as pd
17
16
from pandas import (
18
17
DataFrame ,
@@ -24,12 +23,13 @@ from pandas.core.base import NoNewAttributesMixin
24
23
from pandas ._typing import (
25
24
JoinHow ,
26
25
T ,
26
+ np_ndarray_bool ,
27
27
)
28
28
29
29
# The _TS type is what is used for the result of str.split with expand=True
30
30
_TS = TypeVar ("_TS" , DataFrame , MultiIndex )
31
31
# The _TM type is what is used for the result of str.match
32
- _TM = TypeVar ("_TM" , Series [bool ], npt . NDArray [ np . bool_ ] )
32
+ _TM = TypeVar ("_TM" , Series [bool ], np_ndarray_bool )
33
33
34
34
class StringMethods (NoNewAttributesMixin , Generic [T , _TS , _TM ]):
35
35
def __init__ (self , data : T ) -> None : ...
You can’t perform that action at this time.
0 commit comments