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 11import re
22from typing import Any , Dict , Union
33
4- from deprecation import deprecated
54from gotrue .types import AuthChangeEvent
65from httpx import Timeout
76from postgrest import (
@@ -89,10 +88,6 @@ def __init__(
8988 self ._functions = None
9089 self .auth .on_auth_state_change (self ._listen_to_auth_events )
9190
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-
9691 def table (self , table_name : str ) -> AsyncRequestBuilder :
9792 """Perform a table operation.
9893
Original file line number Diff line number Diff line change 11import re
22from typing import Any , Dict , Union
33
4- from deprecation import deprecated
54from gotrue .types import AuthChangeEvent
65from httpx import Timeout
76from postgrest import SyncFilterRequestBuilder , SyncPostgrestClient , SyncRequestBuilder
@@ -85,10 +84,6 @@ def __init__(
8584 self ._functions = None
8685 self .auth .on_auth_state_change (self ._listen_to_auth_events )
8786
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-
9287 def table (self , table_name : str ) -> SyncRequestBuilder :
9388 """Perform a table operation.
9489
@@ -227,7 +222,6 @@ def _init_postgrest_client(
227222
228223 def _get_auth_headers (self ) -> Dict [str , str ]:
229224 """Helper method to get auth headers."""
230- # What's the corresponding method to get the token
231225 return {
232226 "apiKey" : self .supabase_key ,
233227 "Authorization" : f"Bearer { self .supabase_key } " ,
You can’t perform that action at this time.
0 commit comments