mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Add docstring
This commit is contained in:
parent
ecfd2b46f4
commit
4a0755634b
@ -133,6 +133,9 @@ def get_http_session_with_retry(
|
|||||||
pool_maxsize: Optional[int] = None,
|
pool_maxsize: Optional[int] = None,
|
||||||
config: Optional[Any] = None,
|
config: Optional[Any] = None,
|
||||||
) -> SessionWithTimeout:
|
) -> SessionWithTimeout:
|
||||||
|
"""
|
||||||
|
Returns a requests.Session-derived object that supports a retry behavior.
|
||||||
|
"""
|
||||||
global __disable_certificate_verification_warning
|
global __disable_certificate_verification_warning
|
||||||
if not all(isinstance(x, (int, type(None))) for x in (total, connect, read, redirect, status)):
|
if not all(isinstance(x, (int, type(None))) for x in (total, connect, read, redirect, status)):
|
||||||
raise ValueError("Bad configuration. All retry count values must be null or int")
|
raise ValueError("Bad configuration. All retry count values must be null or int")
|
||||||
|
Loading…
Reference in New Issue
Block a user