Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 7b2928d

Browse files
committed
fix: update type for httpx client
1 parent d34d99e commit 7b2928d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

postgrest/_async/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def create_session(
5151
timeout: Union[int, float, Timeout],
5252
verify: bool = True,
5353
proxy: Optional[str] = None,
54-
http_client: Union[AsyncClient, None] = None,
54+
http_client: Optional[AsyncClient] = None,
5555
) -> AsyncClient:
5656
if http_client is not None:
5757
http_client.base_url = base_url

postgrest/_sync/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def create_session(
5151
timeout: Union[int, float, Timeout],
5252
verify: bool = True,
5353
proxy: Optional[str] = None,
54-
http_client: Union[SyncClient, None] = None,
54+
http_client: Optional[SyncClient] = None,
5555
) -> SyncClient:
5656
if http_client is not None:
5757
http_client.base_url = base_url

0 commit comments

Comments
 (0)