From eda36c3f15d09280ef04f756eab624613da1fcd0 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Fri, 19 Jul 2024 09:17:42 +0300 Subject: [PATCH] Do not share RequestorOptions between APIRequestor instances if not passed --- stripe/_api_requestor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py index cc75eb516..dd91278b5 100644 --- a/stripe/_api_requestor.py +++ b/stripe/_api_requestor.py @@ -72,9 +72,11 @@ class _APIRequestor(object): def __init__( self, - options: RequestorOptions = RequestorOptions(), + options: Optional[RequestorOptions] = None, client: Optional[HTTPClient] = None, ): + if options is None: + options = RequestorOptions() self._options = options self._client = client