Skip to content

Commit b289eaa

Browse files
committed
fix: remove unused resp variable in tests and resolve ruff formatting issues
1 parent 71a228d commit b289eaa

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

openapi_python_sdk/client.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import httpx
55

66
# Backward compatibility imports
7-
from .async_client import AsyncClient
8-
from .async_oauth_client import AsyncOauthClient
9-
from .oauth_client import OauthClient
7+
from .async_client import AsyncClient # noqa: F401
8+
from .async_oauth_client import AsyncOauthClient # noqa: F401
9+
from .oauth_client import OauthClient # noqa: F401
1010

1111

1212
class Client:
@@ -61,5 +61,4 @@ def request(
6161
data = json.loads(data)
6262
except json.JSONDecodeError:
6363
pass
64-
65-
return data
64+
return data

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_defaults_on_empty_request(self, mock_httpx):
103103
mock_httpx.return_value.request.return_value = mock_resp
104104

105105
client = Client(token="tok")
106-
resp = client.request()
106+
client.request()
107107

108108
mock_httpx.return_value.request.assert_called_once_with(
109109
method="GET", url="", headers=client.headers, json={}, params={}

0 commit comments

Comments
 (0)