Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Dec 15, 2023
1 parent 16bf342 commit 099f87a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 7 additions & 6 deletions stripe/_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
try:
import httpx
from httpx import Timeout as HTTPXTimeout
from httpx import HTTPError as HTTPXHTTPError
except ImportError:
httpx = None

Expand Down Expand Up @@ -273,7 +272,9 @@ def request_with_retries(
*,
_usage: Optional[List[str]] = None
) -> Tuple[Any, int, Any]:
return self._request_with_retries_internal(method, url, headers, post_data, is_streaming=False, _usage=_usage)
return self._request_with_retries_internal(
method, url, headers, post_data, is_streaming=False, _usage=_usage
)

def request_stream_with_retries(
self,
Expand All @@ -285,7 +286,7 @@ def request_stream_with_retries(
_usage: Optional[List[str]] = None
) -> Tuple[Any, int, Any]:
return self._request_with_retries_internal(
method, url, headers, post_data, is_streaming=True, usage=_usage
method, url, headers, post_data, is_streaming=True, _usage=_usage
)

def _request_with_retries_internal(
Expand Down Expand Up @@ -364,7 +365,7 @@ async def request_with_retries_async(
_usage: Optional[List[str]] = None
) -> Tuple[Any, int, Any]:
return await self._request_with_retries_internal_async(
method, url, headers, post_data, is_streaming=False, usage=_usage
method, url, headers, post_data, is_streaming=False, _usage=_usage
)

async def request_stream_with_retries_async(
Expand All @@ -377,7 +378,7 @@ async def request_stream_with_retries_async(
_usage: Optional[List[str]] = None
) -> Tuple[Any, int, Any]:
return await self._request_with_retries_internal_async(
method, url, headers, post_data, is_streaming=True, usage=_usage
method, url, headers, post_data, is_streaming=True, _usage=_usage
)

@classmethod
Expand Down Expand Up @@ -429,7 +430,7 @@ async def _request_with_retries_internal_async(
else:
if response is not None:
self._record_request_metrics(
response, request_start, usage
response, request_start, usage=_usage
)

return response
Expand Down
1 change: 0 additions & 1 deletion tests/test_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing_extensions import Type
import pytest
import json
import io
from mock import AsyncMock

import stripe
Expand Down

0 comments on commit 099f87a

Please sign in to comment.