def yesterday(self) -> datetime:
        """ Set the value to yesterday """
        self.value = datetime.today() - timedelta(days=1)
        return self.value
def yesterday ( self ) -> datetime : self . value = datetime . today ( ) - timedelta ( days = 1 ) return self . value
Set the value to yesterday