8
8
SyncMemoryStorage ,
9
9
SyncSupportedStorage ,
10
10
)
11
- from httpx import AsyncClient as HttpxAsyncClient
12
- from httpx import Client as HttpxClient
11
+ from httpx import AsyncClient as AsyncHttpxClient
12
+ from httpx import Client as SyncHttpxClient
13
13
from httpx import Timeout
14
14
from postgrest .constants import DEFAULT_POSTGREST_CLIENT_TIMEOUT
15
15
from storage3 .constants import DEFAULT_TIMEOUT as DEFAULT_STORAGE_CLIENT_TIMEOUT
@@ -45,7 +45,7 @@ class ClientOptions:
45
45
realtime : Optional [RealtimeClientOptions ] = None
46
46
"""Options passed to the realtime-py instance"""
47
47
48
- httpx_client : Union [HttpxClient ] = None
48
+ httpx_client : Union [SyncHttpxClient ] = None
49
49
"""Options passed to the realtime-py instance"""
50
50
51
51
postgrest_client_timeout : Union [int , float , Timeout ] = (
@@ -72,7 +72,7 @@ def replace(
72
72
persist_session : Optional [bool ] = None ,
73
73
storage : Optional [SyncSupportedStorage ] = None ,
74
74
realtime : Optional [RealtimeClientOptions ] = None ,
75
- httpx_client : Optional [HttpxClient ] = None ,
75
+ httpx_client : Optional [SyncHttpxClient ] = None ,
76
76
postgrest_client_timeout : Union [
77
77
int , float , Timeout
78
78
] = DEFAULT_POSTGREST_CLIENT_TIMEOUT ,
@@ -115,7 +115,7 @@ def replace(
115
115
persist_session : Optional [bool ] = None ,
116
116
storage : Optional [AsyncSupportedStorage ] = None ,
117
117
realtime : Optional [RealtimeClientOptions ] = None ,
118
- httpx_client : Optional [HttpxAsyncClient ] = None ,
118
+ httpx_client : Optional [AsyncHttpxClient ] = None ,
119
119
postgrest_client_timeout : Union [
120
120
int , float , Timeout
121
121
] = DEFAULT_POSTGREST_CLIENT_TIMEOUT ,
@@ -155,7 +155,7 @@ def replace(
155
155
persist_session : Optional [bool ] = None ,
156
156
storage : Optional [SyncSupportedStorage ] = None ,
157
157
realtime : Optional [RealtimeClientOptions ] = None ,
158
- httpx_client : Optional [HttpxClient ] = None ,
158
+ httpx_client : Optional [SyncHttpxClient ] = None ,
159
159
postgrest_client_timeout : Union [
160
160
int , float , Timeout
161
161
] = DEFAULT_POSTGREST_CLIENT_TIMEOUT ,
0 commit comments