API: expose dtypes in pandas.api.types (#16099) · pandas-dev/pandas@844013b (original) (raw)

Original file line number Diff line number Diff line change
@@ -33,10 +33,12 @@ class TestTypes(Base, tm.TestCase):
33 33 'is_list_like', 'is_hashable',
34 34 'is_named_tuple', 'is_sequence',
35 35 'pandas_dtype', 'union_categoricals', 'infer_dtype']
36 +dtypes = ['CategoricalDtype', 'DatetimeTZDtype',
37 +'PeriodDtype', 'IntervalDtype']
36 38
37 39 def test_types(self):
38 40
39 -self.check(types, self.allowed)
41 +self.check(types, self.allowed + self.dtypes)
40 42
41 43 def check_deprecation(self, fold, fnew):
42 44 with tm.assert_produces_warning(DeprecationWarning):