MCPcopy Create free account
hub / github.com/DeepL/deepl-python / get_timeout

Method get_timeout

deepl/http_client.py:42–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 return self._num_retries
41
42 def get_timeout(self):
43 return max(self.get_time_until_deadline(), min_connection_timeout)
44
45 def get_time_until_deadline(self):
46 return max(self._deadline - time.time(), 0.0)

Callers 1

request_with_backoffMethod · 0.80

Calls 1

Tested by

no test coverage detected