Skip to content

Commit 64da538

Browse files
authored
STYLE: Enable ruff TCH for pandas/core/common.py (#51798)
* Enable ruff TCH for pandas/core/common.py * move one import * Add blank line after import
1 parent c71645f commit 64da538

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pandas/core/common.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@
3030
import numpy as np
3131

3232
from pandas._libs import lib
33-
from pandas._typing import (
34-
AnyArrayLike,
35-
ArrayLike,
36-
NpDtype,
37-
RandomState,
38-
T,
39-
)
4033

4134
from pandas.core.dtypes.cast import construct_1d_object_array_from_listlike
4235
from pandas.core.dtypes.common import (
@@ -54,6 +47,14 @@
5447
from pandas.core.dtypes.missing import isna
5548

5649
if TYPE_CHECKING:
50+
from pandas._typing import (
51+
AnyArrayLike,
52+
ArrayLike,
53+
NpDtype,
54+
RandomState,
55+
T,
56+
)
57+
5758
from pandas import Index
5859

5960

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ exclude = [
306306
"pandas/core/ops/*" = ["TCH"]
307307
"pandas/core/sorting.py" = ["TCH"]
308308
"pandas/core/construction.py" = ["TCH"]
309-
"pandas/core/common.py" = ["TCH"]
310309
"pandas/core/missing.py" = ["TCH"]
311310
"pandas/core/util/*" = ["TCH"]
312311
"pandas/core/reshape/*" = ["TCH"]

0 commit comments

Comments
 (0)