Skip to content

fixed "pandas/util/*" = ["TCH"] #51888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pandas/util/_print_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
import platform
import struct
import sys
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from pandas._typing import JSONSerializable

from pandas._typing import JSONSerializable
from pandas.compat._optional import (
VERSIONS,
get_version,
Expand Down
8 changes: 6 additions & 2 deletions pandas/util/_test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ def test_foo():
from __future__ import annotations

import locale
from typing import Callable
from typing import (
TYPE_CHECKING,
Callable,
)

import numpy as np
import pytest

from pandas._config import get_option

from pandas._typing import F
if TYPE_CHECKING:
from pandas._typing import F
from pandas.compat import (
IS64,
is_platform_windows,
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ exclude = [
# TCH to be enabled gradually
"pandas/core/arrays/*" = ["TCH"]
"pandas/core/nanops.py" = ["TCH"]
"pandas/util/*" = ["TCH"]
"pandas/_libs/*" = ["TCH"]
# Keep this one enabled
"pandas/_typing.py" = ["TCH"]
Expand Down