11from dataclasses import dataclass , field
2- from typing import Any , Callable , Dict , Optional , Union
2+ from typing import Any , Dict , Optional , Union
33
44from gotrue import SyncMemoryStorage , SyncSupportedStorage
55from 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