diff --git a/pandas/tests/io/pytables/test_file_handling.py b/pandas/tests/io/pytables/test_file_handling.py index 28c6d13d58043..19a92163c6dd2 100644 --- a/pandas/tests/io/pytables/test_file_handling.py +++ b/pandas/tests/io/pytables/test_file_handling.py @@ -22,7 +22,7 @@ tables, ) -from pandas.io import pytables as pytables +from pandas.io import pytables from pandas.io.pytables import Term pytestmark = pytest.mark.single_cpu diff --git a/pandas/tests/strings/conftest.py b/pandas/tests/strings/conftest.py index 1f87608a79f98..cdc2b876194e6 100644 --- a/pandas/tests/strings/conftest.py +++ b/pandas/tests/strings/conftest.py @@ -2,7 +2,7 @@ import pytest from pandas import Series -from pandas.core import strings as strings +from pandas.core import strings _any_string_method = [ ("cat", (), {"sep": ","}), diff --git a/pandas/tests/strings/test_api.py b/pandas/tests/strings/test_api.py index d76ed65be9e1b..7a6c7e69047bc 100644 --- a/pandas/tests/strings/test_api.py +++ b/pandas/tests/strings/test_api.py @@ -8,7 +8,7 @@ _testing as tm, get_option, ) -from pandas.core import strings as strings +from pandas.core import strings def test_api(any_string_dtype): diff --git a/pandas/tests/tseries/offsets/test_business_day.py b/pandas/tests/tseries/offsets/test_business_day.py index 243d3005e4f1d..82cc28ef44a34 100644 --- a/pandas/tests/tseries/offsets/test_business_day.py +++ b/pandas/tests/tseries/offsets/test_business_day.py @@ -28,7 +28,7 @@ assert_offset_equal, ) -from pandas.tseries import offsets as offsets +from pandas.tseries import offsets @pytest.fixture diff --git a/pandas/tests/tseries/offsets/test_custom_business_month.py b/pandas/tests/tseries/offsets/test_custom_business_month.py index bc9f7f3f511b8..3e2500b8009a2 100644 --- a/pandas/tests/tseries/offsets/test_custom_business_month.py +++ b/pandas/tests/tseries/offsets/test_custom_business_month.py @@ -31,7 +31,7 @@ ) from pandas.tests.tseries.offsets.test_offsets import _ApplyCases -from pandas.tseries import offsets as offsets +from pandas.tseries import offsets from pandas.tseries.holiday import USFederalHolidayCalendar diff --git a/pyproject.toml b/pyproject.toml index e3469a4686bdc..0217726514cdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,7 +93,6 @@ disable = [ "unneeded-not", "use-implicit-booleaness-not-comparison", "use-implicit-booleaness-not-len", - "useless-import-alias", "wrong-import-order", "wrong-import-position",