File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
""" public toolkit API """
2
2
3
3
from pandas .core .dtypes .api import * # noqa
4
+ from pandas .core .dtypes .dtypes import CategoricalDtype , DatetimeTZDtype , PeriodDtype # noqa
4
5
from pandas .core .dtypes .concat import union_categoricals # noqa
5
6
from pandas ._libs .lib import infer_dtype # noqa
6
7
del np # noqa
Original file line number Diff line number Diff line change @@ -33,10 +33,11 @@ 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' , 'PeriodDtype' ]
36
37
37
38
def test_types (self ):
38
39
39
- self .check (types , self .allowed )
40
+ self .check (types , self .allowed + self . dtypes )
40
41
41
42
def check_deprecation (self , fold , fnew ):
42
43
with tm .assert_produces_warning (DeprecationWarning ):
You can’t perform that action at this time.
0 commit comments