Skip to content

Commit

Permalink
🚨 auto fix by pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 12, 2023
1 parent 21a1aa3 commit 7599837
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions githubkit/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ def _get_client_defaults(self):
def _create_sync_client(self) -> httpx.Client:
return httpx.Client(
**self._get_client_defaults(),
transport=hishel.CacheTransport(httpx.HTTPTransport(), storage=hishel.InMemoryStorage()),
transport=hishel.CacheTransport(
httpx.HTTPTransport(), storage=hishel.InMemoryStorage()
),
)

# get or create sync client
Expand All @@ -214,7 +216,9 @@ def get_sync_client(self) -> Generator[httpx.Client, None, None]:
def _create_async_client(self) -> httpx.AsyncClient:
return httpx.AsyncClient(
**self._get_client_defaults(),
transport=hishel.AsyncCacheTransport(httpx.AsyncHTTPTransport(), storage=hishel.AsyncInMemoryStorage()),
transport=hishel.AsyncCacheTransport(
httpx.AsyncHTTPTransport(), storage=hishel.AsyncInMemoryStorage()
),
)

# get or create async client
Expand Down

0 comments on commit 7599837

Please sign in to comment.