|
48 | 48 | from pandas._libs.tslibs.offsets import BDay |
49 | 49 | from pandas.compat import pa_version_under10p1 |
50 | 50 | from pandas.errors import PerformanceWarning |
| 51 | +from pandas.util._decorators import set_module |
51 | 52 | from pandas.util._exceptions import find_stack_level |
52 | 53 |
|
53 | 54 | from pandas.core.dtypes.base import ( |
@@ -155,6 +156,7 @@ class CategoricalDtypeType(type): |
155 | 156 |
|
156 | 157 |
|
157 | 158 | @register_extension_dtype |
| 159 | +@set_module("pandas") |
158 | 160 | class CategoricalDtype(PandasExtensionDtype, ExtensionDtype): |
159 | 161 | """ |
160 | 162 | Type for categorical data with the categories and orderedness. |
@@ -706,6 +708,7 @@ def index_class(self) -> type_t[CategoricalIndex]: |
706 | 708 |
|
707 | 709 |
|
708 | 710 | @register_extension_dtype |
| 711 | +@set_module("pandas") |
709 | 712 | class DatetimeTZDtype(PandasExtensionDtype): |
710 | 713 | """ |
711 | 714 | An ExtensionDtype for timezone-aware datetime data. |
@@ -974,6 +977,7 @@ def index_class(self) -> type_t[DatetimeIndex]: |
974 | 977 |
|
975 | 978 |
|
976 | 979 | @register_extension_dtype |
| 980 | +@set_module("pandas") |
977 | 981 | class PeriodDtype(PeriodDtypeBase, PandasExtensionDtype): |
978 | 982 | """ |
979 | 983 | An ExtensionDtype for Period data. |
@@ -1215,6 +1219,7 @@ def index_class(self) -> type_t[PeriodIndex]: |
1215 | 1219 |
|
1216 | 1220 |
|
1217 | 1221 | @register_extension_dtype |
| 1222 | +@set_module("pandas") |
1218 | 1223 | class IntervalDtype(PandasExtensionDtype): |
1219 | 1224 | """ |
1220 | 1225 | An ExtensionDtype for Interval data. |
@@ -1691,6 +1696,7 @@ def _get_common_dtype(self, dtypes: list[DtypeObj]) -> DtypeObj | None: |
1691 | 1696 |
|
1692 | 1697 |
|
1693 | 1698 | @register_extension_dtype |
| 1699 | +@set_module("pandas") |
1694 | 1700 | class SparseDtype(ExtensionDtype): |
1695 | 1701 | """ |
1696 | 1702 | Dtype for data stored in :class:`SparseArray`. |
@@ -2130,6 +2136,7 @@ def _get_common_dtype(self, dtypes: list[DtypeObj]) -> DtypeObj | None: |
2130 | 2136 |
|
2131 | 2137 |
|
2132 | 2138 | @register_extension_dtype |
| 2139 | +@set_module("pandas") |
2133 | 2140 | class ArrowDtype(StorageExtensionDtype): |
2134 | 2141 | """ |
2135 | 2142 | An ExtensionDtype for PyArrow data types. |
|
0 commit comments