Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_backoff
Method · 0.80
Calls
1
get_time_until_deadline
Method · 0.95
Tested by
no test coverage detected