File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 7
7
import platform
8
8
import struct
9
9
import sys
10
+ from typing import TYPE_CHECKING
11
+
12
+ if TYPE_CHECKING :
13
+ from pandas ._typing import JSONSerializable
10
14
11
- from pandas ._typing import JSONSerializable
12
15
from pandas .compat ._optional import (
13
16
VERSIONS ,
14
17
get_version ,
Original file line number Diff line number Diff line change @@ -26,14 +26,18 @@ def test_foo():
26
26
from __future__ import annotations
27
27
28
28
import locale
29
- from typing import Callable
29
+ from typing import (
30
+ TYPE_CHECKING ,
31
+ Callable ,
32
+ )
30
33
31
34
import numpy as np
32
35
import pytest
33
36
34
37
from pandas ._config import get_option
35
38
36
- from pandas ._typing import F
39
+ if TYPE_CHECKING :
40
+ from pandas ._typing import F
37
41
from pandas .compat import (
38
42
IS64 ,
39
43
is_platform_windows ,
Original file line number Diff line number Diff line change @@ -295,7 +295,6 @@ exclude = [
295
295
# TCH to be enabled gradually
296
296
"pandas/core/arrays/*" = [" TCH" ]
297
297
"pandas/core/nanops.py" = [" TCH" ]
298
- "pandas/util/*" = [" TCH" ]
299
298
"pandas/_libs/*" = [" TCH" ]
300
299
# Keep this one enabled
301
300
"pandas/_typing.py" = [" TCH" ]
You can’t perform that action at this time.
0 commit comments