From 4a0755634bd1a1388366e66707826f122cfd5dd4 Mon Sep 17 00:00:00 2001 From: clearml <> Date: Mon, 16 Jun 2025 14:03:41 +0300 Subject: [PATCH] Add docstring --- clearml/backend_api/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clearml/backend_api/utils.py b/clearml/backend_api/utils.py index 691d4af5..48c474fa 100644 --- a/clearml/backend_api/utils.py +++ b/clearml/backend_api/utils.py @@ -133,6 +133,9 @@ def get_http_session_with_retry( pool_maxsize: Optional[int] = None, config: Optional[Any] = None, ) -> SessionWithTimeout: + """ + Returns a requests.Session-derived object that supports a retry behavior. + """ global __disable_certificate_verification_warning 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")