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

Commit e37b37c

Browse files
committed
fix: change type from union to optional
1 parent 7b2928d commit e37b37c

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
@@ -30,7 +30,7 @@ def __init__(
3030
timeout: Union[int, float, Timeout] = DEFAULT_POSTGREST_CLIENT_TIMEOUT,
3131
verify: bool = True,
3232
proxy: Optional[str] = None,
33-
http_client: Union[AsyncClient, None] = None,
33+
http_client: Optional[AsyncClient] = None,
3434
) -> None:
3535
BasePostgrestClient.__init__(
3636
self,

postgrest/_sync/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(
3030
timeout: Union[int, float, Timeout] = DEFAULT_POSTGREST_CLIENT_TIMEOUT,
3131
verify: bool = True,
3232
proxy: Optional[str] = None,
33-
http_client: Union[SyncClient, None] = None,
33+
http_client: Optional[SyncClient] = None,
3434
) -> None:
3535
BasePostgrestClient.__init__(
3636
self,

0 commit comments

Comments
 (0)