diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index f731fd7016751..dbe0dda022637 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -5,6 +5,7 @@ from pandas import compat from pandas.core.dtypes.generic import ABCIndexClass, ABCCategoricalIndex from pandas._libs.tslibs import Period, NaT +from pandas._libs.interval import Interval from .base import ExtensionDtype, _DtypeOpsMixin @@ -791,7 +792,6 @@ def construct_from_string(cls, string): @property def type(self): - from pandas import Interval return Interval def __unicode__(self):