class_docstr: A shared, distributed Lock. Using Redis for locking allows the Lock
  to be shared across processes and/or machines.
  
  It's left to the user to resolve deadlock issues and make sure
  multiple clients play nicely together.
docstr: Adds more time to an already acquired lock.
  
  ``additional_time`` can be specified as an integer or a float, both
  representing the number of seconds to add.
  
  ``replace_ttl`` if False (the default), add `additional_time` to
  the lock's existing ttl. If True, replace the lock's ttl with
  `additional_time`.
docstr_tok: ["Adds","more","time","to","an","already","acquired","lock",".","``","additional_time","``","can","be","specified","as","an","integer","or","a","float",",","both","representing","the","number","of","seconds","to","add",".","``","replace_ttl","``","if","False","(","the","default",")",",","add","`","additional_time","`","to","the","lock","'s","existing","ttl",".","If","True",",","replace","the","lock","'s","ttl","with","`","additional_time","`","."]
code: def extend(
      self, additional_time: int, replace_ttl: bool = False
  ) -> bool:
      """
      Adds more time to an already acquired lock.
  
      ``additional_time`` can be specified as an integer or a float, both
      representing the number of seconds to add.
  
      ``replace_ttl`` if False (the default), add `additional_time` to
      the lock's existing ttl. If True, replace the lock's ttl with
      `additional_time`.
      """
      if self.local.token is None:
          raise LockError("Cannot extend an unlocked lock")
      if self.timeout is None:
          raise LockError("Cannot extend a lock with no timeout")
      return self.do_extend(additional_time, replace_ttl)
  
imports: import threading
  import time
  import uuid
  from types import SimpleNamespace, TracebackType
  from typing import Optional, Type
  from redis.exceptions import LockError, LockNotOwnedError
  from redis.typing import Number
label_desc: Use image node_id 11 for calling the Lock obj's underlying member method code with example usage: obj.extend(additional_time, replace_ttl) and returns: self