From 2c2855fe69f461fae6df2c29c1862b7f8ab9939f Mon Sep 17 00:00:00 2001 From: Yi Wei Date: Sun, 5 Mar 2023 22:40:12 +0100 Subject: [PATCH] enable TCH for pandas/core/resample.py --- pandas/core/resample.py | 29 +++++++++++++++-------------- pyproject.toml | 1 - 2 files changed, 15 insertions(+), 15 deletions(-) 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"]