Skip to content

Commit 243324d

Browse files
author
Andrew Smith
authored
fix: remove deprecated .functions() method (#629)
2 parents 247b309 + e9f8010 commit 243324d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

supabase/_async/client.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import re
22
from typing import Any, Dict, Union
33

4-
from deprecation import deprecated
54
from gotrue.types import AuthChangeEvent
65
from httpx import Timeout
76
from 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

supabase/_sync/client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import re
22
from typing import Any, Dict, Union
33

4-
from deprecation import deprecated
54
from gotrue.types import AuthChangeEvent
65
from httpx import Timeout
76
from 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}",

0 commit comments

Comments
 (0)