@@ -89,17 +89,17 @@ def _get_attributes_dict(self):
8989
9090 @property
9191 def _scalar_type (self ):
92+ # type: () -> Union[type, Tuple[type]]
9293 """The scalar associated with this datelike
9394
9495 * PeriodArray : Period
9596 * DatetimeArray : Timestamp
9697 * TimedeltaArray : Timedelta
9798 """
98- # type: # () -> Union[type, Tuple[type]]
9999 raise AbstractMethodError (self )
100100
101101 def _scalar_from_string (self , value ):
102- # type: (str) -> Union[Period, Timestamp, Timedelta, NaT ]
102+ # type: (str) -> Union[Period, Timestamp, Timedelta, NaTType ]
103103 """
104104 Construct a scalar type from a string.
105105
@@ -120,6 +120,7 @@ def _scalar_from_string(self, value):
120120 raise AbstractMethodError (self )
121121
122122 def _unbox_scalar (self , value ):
123+ # type: (Union[Period, Timestamp, Timedelta, NaTType]) -> int
123124 """
124125 Unbox the integer value of a scalar `value`.
125126
@@ -139,6 +140,9 @@ def _unbox_scalar(self, value):
139140 raise AbstractMethodError (self )
140141
141142 def _check_compatible_with (self , other ):
143+ # TODO: choose a type for other
144+ # Can it be NaT?
145+ # Scalar, array, or both?
142146 """
143147 Verify that `self` and `other` are compatible.
144148
0 commit comments