@@ -486,7 +486,7 @@ def _hash_categories(categories, ordered: Ordered = True) -> int:
486
486
@classmethod
487
487
def construct_array_type (cls ):
488
488
"""
489
- Return the array type associated with this dtype
489
+ Return the array type associated with this dtype.
490
490
491
491
Returns
492
492
-------
@@ -668,7 +668,7 @@ def __init__(self, unit="ns", tz=None):
668
668
unit = result .unit
669
669
tz = result .tz
670
670
msg = (
671
- "Passing a dtype alias like 'datetime64[ns, {tz}]' "
671
+ f "Passing a dtype alias like 'datetime64[ns, { tz } ]' "
672
672
"to DatetimeTZDtype is no longer supported. Use "
673
673
"'DatetimeTZDtype.construct_from_string()' instead."
674
674
)
@@ -704,7 +704,7 @@ def tz(self):
704
704
@classmethod
705
705
def construct_array_type (cls ):
706
706
"""
707
- Return the array type associated with this dtype
707
+ Return the array type associated with this dtype.
708
708
709
709
Returns
710
710
-------
@@ -936,6 +936,13 @@ def is_dtype(cls, dtype) -> bool:
936
936
937
937
@classmethod
938
938
def construct_array_type (cls ):
939
+ """
940
+ Return the array type associated with this dtype.
941
+
942
+ Returns
943
+ -------
944
+ type
945
+ """
939
946
from pandas .core .arrays import PeriodArray
940
947
941
948
return PeriodArray
@@ -1030,7 +1037,7 @@ def subtype(self):
1030
1037
@classmethod
1031
1038
def construct_array_type (cls ):
1032
1039
"""
1033
- Return the array type associated with this dtype
1040
+ Return the array type associated with this dtype.
1034
1041
1035
1042
Returns
1036
1043
-------
0 commit comments