Skip to content

Commit 81cd2a8

Browse files
committed
fix ruff linting issues and sort imports in thread-safety tests
1 parent 90bf9fc commit 81cd2a8

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
@@ -35,7 +35,6 @@ def client(self) -> Any:
3535
"""
3636
if self._client is not None:
3737
return self._client
38-
3938
if not hasattr(self._thread_local, "client"):
4039
self._thread_local.client = httpx.Client(timeout=self.timeout)
4140
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)