code: def ttl(self, value):
          
  
          # get timer
          timer = getattr(self, Annotation.__TIMER, None)
  
          # if timer is running, stop the timer
          if timer is not None:
              timer.cancel()
  
          # initialize timestamp
          timestamp = None
  
          # if value is None
          if value is None:
              # nonify timer
              timer = None
  
          else:  # else, renew a timer
              # get timestamp
              timestamp = time() + value
              # start a new timer
              timer = Timer(value, self.__del__)
              timer.start()
              # set/update attributes
  
          setattr(self, Annotation.__TIMER, timer)
          setattr(self, Annotation.__TS, timestamp)
docs: Change self ttl with input value.
  
          :param float value: new ttl in seconds.