File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 77import platform
88import struct
99import sys
10+ from typing import TYPE_CHECKING
11+
12+ if TYPE_CHECKING :
13+ from pandas ._typing import JSONSerializable
1014
11- from pandas ._typing import JSONSerializable
1215from pandas .compat ._optional import (
1316 VERSIONS ,
1417 get_version ,
Original file line number Diff line number Diff line change @@ -26,14 +26,18 @@ def test_foo():
2626from __future__ import annotations
2727
2828import locale
29- from typing import Callable
29+ from typing import (
30+ TYPE_CHECKING ,
31+ Callable ,
32+ )
3033
3134import numpy as np
3235import pytest
3336
3437from pandas ._config import get_option
3538
36- from pandas ._typing import F
39+ if TYPE_CHECKING :
40+ from pandas ._typing import F
3741from pandas .compat import (
3842 IS64 ,
3943 is_platform_windows ,
Original file line number Diff line number Diff line change @@ -295,7 +295,6 @@ exclude = [
295295# TCH to be enabled gradually
296296"pandas/core/arrays/*" = [" TCH" ]
297297"pandas/core/nanops.py" = [" TCH" ]
298- "pandas/util/*" = [" TCH" ]
299298"pandas/_libs/*" = [" TCH" ]
300299# Keep this one enabled
301300"pandas/_typing.py" = [" TCH" ]
You can’t perform that action at this time.
0 commit comments