File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
from typing import (
2
- TYPE_CHECKING ,
3
2
Iterable ,
4
3
Literal ,
5
4
overload ,
6
5
)
7
6
8
7
import numpy as np
9
8
10
- if TYPE_CHECKING : # noqa: PYI002
11
- from pandas ._typing import (
12
- BinOp ,
13
- BoolOp ,
14
- npt ,
15
- )
9
+ from pandas ._typing import (
10
+ BinOp ,
11
+ BoolOp ,
12
+ npt ,
13
+ )
16
14
17
15
def scalar_compare (
18
16
values : np .ndarray , # object[:]
Original file line number Diff line number Diff line change 23
23
Optional ,
24
24
Protocol ,
25
25
Type as type_t ,
26
- TypeAlias ,
27
26
TypeVar ,
28
27
Union ,
29
28
overload ,
94
93
from typing import SupportsIndex
95
94
96
95
if sys .version_info >= (3 , 10 ):
96
+ from typing import (
97
+ ParamSpec ,
98
+ TypeAlias ,
99
+ )
97
100
from typing import Concatenate # pyright: ignore[reportUnusedImport]
98
- from typing import ParamSpec
99
101
from typing import TypeGuard # pyright: ignore[reportUnusedImport]
100
102
else :
101
103
from typing_extensions import ( # pyright: ignore[reportUnusedImport]
102
104
Concatenate ,
103
105
ParamSpec ,
106
+ TypeAlias ,
104
107
TypeGuard ,
105
108
)
106
109
You can’t perform that action at this time.
0 commit comments