1
1
from dataclasses import dataclass , field
2
- from typing import Any , Callable , Dict , Optional , Union
2
+ from typing import Any , Callable , Dict , Optional
3
3
4
4
from gotrue import SyncMemoryStorage , SyncSupportedStorage
5
- from postgrest .constants import DEFAULT_POSTGREST_CLIENT_TIMEOUT
6
- from httpx import Timeout
7
5
8
6
from supabase import __version__
9
7
@@ -36,9 +34,6 @@ class ClientOptions:
36
34
fetch : Optional [Callable ] = None
37
35
"""A custom `fetch` implementation."""
38
36
39
- timeout : Union [int , float , Timeout ] = DEFAULT_POSTGREST_CLIENT_TIMEOUT
40
- """Timeout passed to the SyncPostgrestClient instance."""
41
-
42
37
def replace (
43
38
self ,
44
39
schema : Optional [str ] = None ,
@@ -48,7 +43,6 @@ def replace(
48
43
local_storage : Optional [SyncSupportedStorage ] = None ,
49
44
realtime : Optional [Dict [str , Any ]] = None ,
50
45
fetch : Optional [Callable ] = None ,
51
- timeout : Union [int , float , Timeout ] = DEFAULT_POSTGREST_CLIENT_TIMEOUT
52
46
) -> "ClientOptions" :
53
47
"""Create a new SupabaseClientOptions with changes"""
54
48
client_options = ClientOptions ()
@@ -61,5 +55,4 @@ def replace(
61
55
client_options .local_storage = local_storage or self .local_storage
62
56
client_options .realtime = realtime or self .realtime
63
57
client_options .fetch = fetch or self .fetch
64
- client_options .timeout = timeout or self .timeout
65
58
return client_options
0 commit comments