File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change 1
1
import re
2
2
from typing import Any , Dict , Union
3
3
4
- from deprecation import deprecated
5
4
from gotrue .types import AuthChangeEvent
6
5
from httpx import Timeout
7
6
from postgrest import (
@@ -89,10 +88,6 @@ def __init__(
89
88
self ._functions = None
90
89
self .auth .on_auth_state_change (self ._listen_to_auth_events )
91
90
92
- @deprecated ("1.1.1" , "1.3.0" , details = "Use `.functions` instead" )
93
- def functions (self ) -> AsyncFunctionsClient :
94
- return AsyncFunctionsClient (self .functions_url , self ._get_auth_headers ())
95
-
96
91
def table (self , table_name : str ) -> AsyncRequestBuilder :
97
92
"""Perform a table operation.
98
93
Original file line number Diff line number Diff line change 1
1
import re
2
2
from typing import Any , Dict , Union
3
3
4
- from deprecation import deprecated
5
4
from gotrue .types import AuthChangeEvent
6
5
from httpx import Timeout
7
6
from postgrest import SyncFilterRequestBuilder , SyncPostgrestClient , SyncRequestBuilder
@@ -85,10 +84,6 @@ def __init__(
85
84
self ._functions = None
86
85
self .auth .on_auth_state_change (self ._listen_to_auth_events )
87
86
88
- @deprecated ("1.1.1" , "1.3.0" , details = "Use `.functions` instead" )
89
- def functions (self ) -> SyncFunctionsClient :
90
- return SyncFunctionsClient (self .functions_url , self ._get_auth_headers ())
91
-
92
87
def table (self , table_name : str ) -> SyncRequestBuilder :
93
88
"""Perform a table operation.
94
89
@@ -227,7 +222,6 @@ def _init_postgrest_client(
227
222
228
223
def _get_auth_headers (self ) -> Dict [str , str ]:
229
224
"""Helper method to get auth headers."""
230
- # What's the corresponding method to get the token
231
225
return {
232
226
"apiKey" : self .supabase_key ,
233
227
"Authorization" : f"Bearer { self .supabase_key } " ,
You can’t perform that action at this time.
0 commit comments