def end_date(self) -> Optional[datetime.date]:
        """
        Returns the end date of the set of intervals, or ``None`` if empty.
        """
        if not self.intervals:
            return None
        return self.end_datetime().date()
def end_date ( self ) -> Optional [ datetime . date ] : if not self . intervals : return None return self . end_datetime ( ) . date ( )
Returns the end date of the set of intervals, or ``None`` if empty.