Skip to content

Commit bb71ac8

Browse files
authored
STYLE Enable ruff TCH for pandas/core/util/* (#51805)
* Enable ruff TCH for pandas/core/common.py * move one import * Add blank line after import * Enable ruff TCH on pandas/core/util * move import
1 parent dfd5d66 commit bb71ac8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/core/util/hashing.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
import numpy as np
1515

1616
from pandas._libs.hashing import hash_object_array
17-
from pandas._typing import (
18-
ArrayLike,
19-
npt,
20-
)
2117

2218
from pandas.core.dtypes.common import is_list_like
2319
from pandas.core.dtypes.generic import (
@@ -29,6 +25,11 @@
2925
)
3026

3127
if TYPE_CHECKING:
28+
from pandas._typing import (
29+
ArrayLike,
30+
npt,
31+
)
32+
3233
from pandas import (
3334
DataFrame,
3435
Index,

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ exclude = [
301301
"pandas/core/sorting.py" = ["TCH"]
302302
"pandas/core/construction.py" = ["TCH"]
303303
"pandas/core/missing.py" = ["TCH"]
304-
"pandas/core/util/*" = ["TCH"]
305304
"pandas/core/reshape/*" = ["TCH"]
306305
"pandas/core/strings/*" = ["TCH"]
307306
"pandas/core/tools/*" = ["TCH"]

0 commit comments

Comments
 (0)