Skip to content

Commit 9047108

Browse files
fix CI
1 parent 89285c2 commit 9047108

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,7 @@ cdef class _Timestamp(ABCTimestamp):
612612
field, freq_name, month_kw, self._creso)
613613
return out[0]
614614

615-
@property
616-
def max(self):
615+
def max(self) -> "Timestamp":
617616
"""
618617
A constant that represents the maximum valid date and time value.
619618

@@ -635,10 +634,9 @@ cdef class _Timestamp(ABCTimestamp):
635634
>>> pd.Timestamp.max
636635
Timestamp('2262-04-11 23:47:16.854775807')
637636
"""
638-
return self.max
637+
return max
639638

640-
@property
641-
def min(self):
639+
def min(self) -> "Timestamp":
642640
"""
643641
Return the minimum representable Timestamp.
644642

@@ -660,7 +658,7 @@ cdef class _Timestamp(ABCTimestamp):
660658
>>> pd.Timestamp.min
661659
Timestamp('1677-09-21 00:12:43.145224193')
662660
"""
663-
return self.min
661+
return min
664662

665663
@property
666664
def is_month_start(self) -> bool:

0 commit comments

Comments
 (0)