Skip to content

Commit 7c7dc37

Browse files
committed
fix ruff linting issues and sort imports in thread-safety tests
1 parent 1d47338 commit 7c7dc37

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

openapi_python_sdk/oauth_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def client(self) -> Any:
3434
"""
3535
if self._client is not None:
3636
return self._client
37-
3837
if not hasattr(self._thread_local, "client"):
3938
self._thread_local.client = httpx.Client()
4039
return self._thread_local.client

tests/test_thread_safety.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import threading
22
import unittest
3-
from openapi_python_sdk import Client, OauthClient
3+
44
import httpx
55

6+
from openapi_python_sdk import Client, OauthClient
7+
8+
69
class TestThreadSafety(unittest.TestCase):
710
def test_oauth_client_thread_safety(self):
811
oauth = OauthClient(username="user", apikey="key")

0 commit comments

Comments
 (0)