File tree Expand file tree Collapse file tree 10 files changed +16
-23
lines changed Expand file tree Collapse file tree 10 files changed +16
-23
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ from typing import (
1111 Final ,
1212 Literal ,
1313 TypeAlias ,
14+ TypeGuard ,
1415 overload ,
1516)
1617
@@ -19,7 +20,6 @@ import numpy as np
1920from pandas ._typing import (
2021 ArrayLike ,
2122 DtypeObj ,
22- TypeGuard ,
2323 npt ,
2424)
2525
Original file line number Diff line number Diff line change 2020 TYPE_CHECKING ,
2121 Any ,
2222 Literal ,
23+ ParamSpec ,
2324 Protocol ,
25+ SupportsIndex ,
2426 TypeAlias ,
2527 TypeVar ,
2628 Union ,
8486 # Name "npt._ArrayLikeInt_co" is not defined [name-defined]
8587 NumpySorter : TypeAlias = npt ._ArrayLikeInt_co | None # type: ignore[name-defined]
8688
87- from typing import (
88- ParamSpec ,
89- SupportsIndex ,
90- )
91- from typing import Concatenate # pyright: ignore[reportUnusedImport]
92- from typing import TypeGuard # pyright: ignore[reportUnusedImport]
93-
94- P = ParamSpec ("P" )
95- else :
96- ParamSpec : Any = None
97- TypeGuard : Any = None
98- Concatenate : Any = None
89+
90+ P = ParamSpec ("P" )
9991
10092HashableT = TypeVar ("HashableT" , bound = Hashable )
10193HashableT2 = TypeVar ("HashableT2" , bound = Hashable )
Original file line number Diff line number Diff line change 2525from typing import (
2626 TYPE_CHECKING ,
2727 Any ,
28+ Concatenate ,
2829 TypeVar ,
2930 cast ,
3031 overload ,
5152 from pandas ._typing import (
5253 AnyArrayLike ,
5354 ArrayLike ,
54- Concatenate ,
5555 NpDtype ,
5656 P ,
5757 RandomState ,
Original file line number Diff line number Diff line change 66from numbers import Number
77import re
88from re import Pattern
9- from typing import TYPE_CHECKING
9+ from typing import (
10+ TYPE_CHECKING ,
11+ TypeGuard ,
12+ )
1013
1114import numpy as np
1215
1518if TYPE_CHECKING :
1619 from collections .abc import Hashable
1720
18- from pandas ._typing import TypeGuard
19-
2021is_bool = lib .is_bool
2122
2223is_integer = lib .is_integer
Original file line number Diff line number Diff line change 1414 TYPE_CHECKING ,
1515 Any ,
1616 ClassVar ,
17+ Concatenate ,
1718 Literal ,
1819 NoReturn ,
1920 Self ,
4243 Axis ,
4344 AxisInt ,
4445 CompressionOptions ,
45- Concatenate ,
4646 DtypeArg ,
4747 DtypeBackend ,
4848 DtypeObj ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class providing the base-class of operations.
2525from textwrap import dedent
2626from typing import (
2727 TYPE_CHECKING ,
28+ Concatenate ,
2829 Literal ,
2930 Self ,
3031 TypeAlias ,
@@ -147,7 +148,6 @@ class providing the base-class of operations.
147148 from pandas ._libs .tslibs .timedeltas import Timedelta
148149 from pandas ._typing import (
149150 Any ,
150- Concatenate ,
151151 P ,
152152 T ,
153153 )
Original file line number Diff line number Diff line change 44from textwrap import dedent
55from typing import (
66 TYPE_CHECKING ,
7+ Concatenate ,
78 Literal ,
89 Self ,
910 cast ,
9798 Any ,
9899 AnyArrayLike ,
99100 Axis ,
100- Concatenate ,
101101 FreqIndexT ,
102102 Frequency ,
103103 IndexLabel ,
Original file line number Diff line number Diff line change 44from typing import (
55 TYPE_CHECKING ,
66 Any ,
7+ Concatenate ,
78 Literal ,
89 Self ,
910 final ,
4243 from collections .abc import Callable
4344
4445 from pandas ._typing import (
45- Concatenate ,
4646 P ,
4747 QuantileInterpolation ,
4848 T ,
Original file line number Diff line number Diff line change 1313from typing import (
1414 TYPE_CHECKING ,
1515 Any ,
16+ Concatenate ,
1617 Literal ,
1718 Self ,
1819 final ,
110111
111112 from pandas ._typing import (
112113 ArrayLike ,
113- Concatenate ,
114114 NDFrameT ,
115115 QuantileInterpolation ,
116116 P ,
Original file line number Diff line number Diff line change 1010import textwrap
1111from typing import (
1212 TYPE_CHECKING ,
13+ Concatenate ,
1314 Self ,
1415 overload ,
1516)
6768 Any ,
6869 Axis ,
6970 AxisInt ,
70- Concatenate ,
7171 ExcelWriterMergeCells ,
7272 FilePath ,
7373 IndexLabel ,
You can’t perform that action at this time.
0 commit comments