diff --git a/pandas/core/resample.py b/pandas/core/resample.py index 665e32829a57e..0ca01efe0c855 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -25,20 +25,7 @@ Timestamp, to_offset, ) -from pandas._typing import ( - AnyArrayLike, - Axis, - AxisInt, - Frequency, - IndexLabel, - NDFrameT, - QuantileInterpolation, - T, - TimedeltaConvertibleTypes, - TimeGrouperOrigin, - TimestampConvertibleTypes, - npt, -) +from pandas._typing import NDFrameT from pandas.compat.numpy import function as nv from pandas.errors import AbstractMethodError from pandas.util._decorators import ( @@ -93,6 +80,20 @@ ) if TYPE_CHECKING: + from pandas._typing import ( + AnyArrayLike, + Axis, + AxisInt, + Frequency, + IndexLabel, + QuantileInterpolation, + T, + TimedeltaConvertibleTypes, + TimeGrouperOrigin, + TimestampConvertibleTypes, + npt, + ) + from pandas import ( DataFrame, Index, diff --git a/pyproject.toml b/pyproject.toml index 168effada2e1f..8760d9695f704 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -298,7 +298,6 @@ exclude = [ "pandas/core/generic.py" = ["TCH"] "pandas/core/frame.py" = ["TCH"] "pandas/core/series.py" = ["TCH"] -"pandas/core/resample.py" = ["TCH"] "pandas/core/nanops.py" = ["TCH"] "pandas/core/apply.py" = ["TCH"] "pandas/core/base.py" = ["TCH"]