|
10 | 10 | Series, Categorical, CategoricalIndex, IntervalIndex, date_range)
|
11 | 11 |
|
12 | 12 | from pandas.compat import string_types
|
13 |
| -from pandas.core.arrays import ExtensionArray |
14 | 13 | from pandas.core.dtypes.dtypes import (
|
15 | 14 | DatetimeTZDtype, PeriodDtype,
|
16 |
| - IntervalDtype, CategoricalDtype, ExtensionDtype) |
| 15 | + IntervalDtype, CategoricalDtype) |
17 | 16 | from pandas.core.dtypes.common import (
|
18 | 17 | is_categorical_dtype, is_categorical,
|
19 | 18 | is_datetime64tz_dtype, is_datetimetz,
|
20 |
| - is_extension_array_dtype, |
21 | 19 | is_period_dtype, is_period,
|
22 | 20 | is_dtype_equal, is_datetime64_ns_dtype,
|
23 | 21 | is_datetime64_dtype, is_interval_dtype,
|
@@ -744,31 +742,3 @@ def test_categorical_categories(self):
|
744 | 742 | tm.assert_index_equal(c1.categories, pd.Index(['a', 'b']))
|
745 | 743 | c1 = CategoricalDtype(CategoricalIndex(['a', 'b']))
|
746 | 744 | tm.assert_index_equal(c1.categories, pd.Index(['a', 'b']))
|
747 |
| - |
748 |
| - |
749 |
| -class DummyArray(ExtensionArray): |
750 |
| - pass |
751 |
| - |
752 |
| - |
753 |
| -class DummyDtype(ExtensionDtype): |
754 |
| - pass |
755 |
| - |
756 |
| - |
757 |
| -class TestExtensionArrayDtype(object): |
758 |
| - |
759 |
| - @pytest.mark.parametrize('values', [ |
760 |
| - pd.Categorical([]), |
761 |
| - pd.Categorical([]).dtype, |
762 |
| - pd.Series(pd.Categorical([])), |
763 |
| - DummyDtype(), |
764 |
| - DummyArray(), |
765 |
| - ]) |
766 |
| - def test_is_extension_array_dtype(self, values): |
767 |
| - assert is_extension_array_dtype(values) |
768 |
| - |
769 |
| - @pytest.mark.parametrize('values', [ |
770 |
| - np.array([]), |
771 |
| - pd.Series(np.array([])), |
772 |
| - ]) |
773 |
| - def test_is_not_extension_array_dtype(self, values): |
774 |
| - assert not is_extension_array_dtype(values) |
0 commit comments