Skip to content

Commit 2829aea

Browse files
authored
fix: remove fetch from clientoptions (#481)
* fix: remove fetch from clientoptions * chore: re-run tests * chore: remove unused import
1 parent 0bb7830 commit 2829aea

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

supabase/lib/client_options.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from dataclasses import dataclass, field
2-
from typing import Any, Callable, Dict, Optional, Union
2+
from typing import Any, Dict, Optional, Union
33

44
from gotrue import SyncMemoryStorage, SyncSupportedStorage
55
from httpx import Timeout
@@ -34,9 +34,6 @@ class ClientOptions:
3434
realtime: Optional[Dict[str, Any]] = None
3535
"""Options passed to the realtime-py instance"""
3636

37-
fetch: Optional[Callable] = None
38-
"""A custom `fetch` implementation."""
39-
4037
postgrest_client_timeout: Union[
4138
int, float, Timeout
4239
] = DEFAULT_POSTGREST_CLIENT_TIMEOUT
@@ -53,7 +50,6 @@ def replace(
5350
persist_session: Optional[bool] = None,
5451
storage: Optional[SyncSupportedStorage] = None,
5552
realtime: Optional[Dict[str, Any]] = None,
56-
fetch: Optional[Callable] = None,
5753
postgrest_client_timeout: Union[
5854
int, float, Timeout
5955
] = DEFAULT_POSTGREST_CLIENT_TIMEOUT,
@@ -71,7 +67,6 @@ def replace(
7167
client_options.persist_session = persist_session or self.persist_session
7268
client_options.storage = storage or self.storage
7369
client_options.realtime = realtime or self.realtime
74-
client_options.fetch = fetch or self.fetch
7570
client_options.postgrest_client_timeout = (
7671
postgrest_client_timeout or self.postgrest_client_timeout
7772
)

0 commit comments

Comments
 (0)