original_docstring: 
          Update current request limit remaining status.
          
docstring: Update current request limit remaining status.
docstring_tokens: Update current request limit remaining status .
code: def update_rate_limit(self, request: Request):
          """
          Update current request limit remaining status.
          """
          if request.response is None:
              return
          headers = request.response.headers
  
          self.rate_limit_remaining = int(headers["x-ratelimit-remaining"])
  
          self.rate_limit_sleep = int(headers.get("Retry-After", 0))
          if self.rate_limit_sleep:
              self.rate_limit_sleep += 1
code_tokens: def update_rate_limit ( self , request : Request ) : if request . response is None : return headers = request . response . headers self . rate_limit_remaining = int ( headers [ "x-ratelimit-remaining" ] ) self . rate_limit_sleep = int ( headers . get ( "Retry-After" , 0 ) ) if self . rate_limit_sleep : self . rate_limit_sleep += 1
short_docstring: Update current request limit remaining status.
short_docstring_tokens: Update current request limit remaining status .
comment: """
          Update current request limit remaining status.
          """