From 6bd3332bbc46099b71e99bfc85b1526f6b8d4d4a Mon Sep 17 00:00:00 2001 From: Matthew Jenkins <40323108+Matthew-Jenkins@users.noreply.github.com> Date: Thu, 7 Aug 2025 10:56:36 -0400 Subject: [PATCH] Make using session the default I have no idea why you would not want to use a session by default. If you make more than 1 request in your script you benefit by an order of magnitude on wait to reconnect. --- atlassian/rest_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlassian/rest_client.py b/atlassian/rest_client.py index ee92fd19c..40bbb3586 100644 --- a/atlassian/rest_client.py +++ b/atlassian/rest_client.py @@ -78,7 +78,7 @@ def __init__( api_root: str = "rest/api", api_version: Union[str, int] = "latest", verify_ssl: bool = True, - session: Optional[requests.Session] = None, + session: Optional[requests.Session] = requests.Session(), oauth: Optional[dict] = None, oauth2: Optional[dict] = None, cookies: Optional[CookieJar] = None,