Skip to content

Commit 3b94ec5

Browse files
Rylie-WYi Wei
and
Yi Wei
authored
PERF: enabling TCH for pandas/core/resample.py (#51802)
enable TCH for pandas/core/resample.py Co-authored-by: Yi Wei <[email protected]>
1 parent 64da538 commit 3b94ec5

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

pandas/core/resample.py

+15-14
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,7 @@
2525
Timestamp,
2626
to_offset,
2727
)
28-
from pandas._typing import (
29-
AnyArrayLike,
30-
Axis,
31-
AxisInt,
32-
Frequency,
33-
IndexLabel,
34-
NDFrameT,
35-
QuantileInterpolation,
36-
T,
37-
TimedeltaConvertibleTypes,
38-
TimeGrouperOrigin,
39-
TimestampConvertibleTypes,
40-
npt,
41-
)
28+
from pandas._typing import NDFrameT
4229
from pandas.compat.numpy import function as nv
4330
from pandas.errors import AbstractMethodError
4431
from pandas.util._decorators import (
@@ -93,6 +80,20 @@
9380
)
9481

9582
if TYPE_CHECKING:
83+
from pandas._typing import (
84+
AnyArrayLike,
85+
Axis,
86+
AxisInt,
87+
Frequency,
88+
IndexLabel,
89+
QuantileInterpolation,
90+
T,
91+
TimedeltaConvertibleTypes,
92+
TimeGrouperOrigin,
93+
TimestampConvertibleTypes,
94+
npt,
95+
)
96+
9697
from pandas import (
9798
DataFrame,
9899
Index,

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ exclude = [
298298
"pandas/core/generic.py" = ["TCH"]
299299
"pandas/core/frame.py" = ["TCH"]
300300
"pandas/core/series.py" = ["TCH"]
301-
"pandas/core/resample.py" = ["TCH"]
302301
"pandas/core/nanops.py" = ["TCH"]
303302
"pandas/core/apply.py" = ["TCH"]
304303
"pandas/core/base.py" = ["TCH"]

0 commit comments

Comments
 (0)