Skip to content

Commit

Permalink
Do not share RequestorOptions between APIRequestor instances if not p…
Browse files Browse the repository at this point in the history
…assed
  • Loading branch information
akx committed Jul 19, 2024
1 parent beff98e commit eda36c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stripe/_api_requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eda36c3

Please sign in to comment.