code: def expire(self, key, timeout):
          
          if isinstance(timeout, float):
              return self.pexpire(key, int(timeout * 1000))
          if not isinstance(timeout, int):
              raise TypeError(
                  "timeout argument must be int, not {!r}".format(timeout))
          fut = self.execute(b'EXPIRE', key, timeout)
          return wait_convert(fut, bool)
docs: Set a timeout on key.
  
          if timeout is float it will be multiplied by 1000
          coerced to int and passed to `pexpire` method.
  
          Otherwise raises TypeError if timeout argument is not int.