11import asyncio
22import re
3- from typing import Any , Dict , List , Optional , Union
3+ from typing import Any , Dict , Optional , Union
44
55from gotrue import AsyncMemoryStorage
66from gotrue .types import AuthChangeEvent , Session
77from httpx import Timeout
88from postgrest import (
99 AsyncPostgrestClient ,
10- AsyncRequestBuilder ,
11- AsyncRPCFilterRequestBuilder ,
1210)
1311from postgrest .constants import DEFAULT_POSTGREST_CLIENT_TIMEOUT
1412from postgrest .types import CountMethod
@@ -116,7 +114,7 @@ async def create(
116114
117115 return client
118116
119- def table (self , table_name : str ) -> AsyncRequestBuilder :
117+ def table (self , table_name : str ):
120118 """Perform a table operation.
121119
122120 Note that the supabase client uses the `from` method, but in Python,
@@ -125,14 +123,14 @@ def table(self, table_name: str) -> AsyncRequestBuilder:
125123 """
126124 return self .from_ (table_name )
127125
128- def schema (self , schema : str ) -> AsyncPostgrestClient :
126+ def schema (self , schema : str ):
129127 """Select a schema to query or perform an function (rpc) call.
130128
131129 The schema needs to be on the list of exposed schemas inside Supabase.
132130 """
133131 return self .postgrest .schema (schema )
134132
135- def from_ (self , table_name : str ) -> AsyncRequestBuilder :
133+ def from_ (self , table_name : str ):
136134 """Perform a table operation.
137135
138136 See the `table` method.
@@ -146,7 +144,7 @@ def rpc(
146144 count : Optional [CountMethod ] = None ,
147145 head : bool = False ,
148146 get : bool = False ,
149- ) -> AsyncRPCFilterRequestBuilder :
147+ ):
150148 """Performs a stored procedure call.
151149
152150 Parameters
@@ -161,7 +159,7 @@ def rpc(
161159
162160 Returns
163161 -------
164- SyncFilterRequestBuilder
162+ AsyncFilterRequestBuilder
165163 Returns a filter builder. This lets you apply filters on the response
166164 of an RPC.
167165 """
@@ -207,15 +205,15 @@ def channel(
207205 """Creates a Realtime channel with Broadcast, Presence, and Postgres Changes."""
208206 return self .realtime .channel (topic , params )
209207
210- def get_channels (self ) -> List [ AsyncRealtimeChannel ] :
208+ def get_channels (self ):
211209 """Returns all realtime channels."""
212210 return self .realtime .get_channels ()
213211
214- async def remove_channel (self , channel : AsyncRealtimeChannel ) -> None :
212+ async def remove_channel (self , channel : AsyncRealtimeChannel ):
215213 """Unsubscribes and removes Realtime channel from Realtime client."""
216214 await self .realtime .remove_channel (channel )
217215
218- async def remove_all_channels (self ) -> None :
216+ async def remove_all_channels (self ):
219217 """Unsubscribes and removes all Realtime channels from Realtime client."""
220218 await self .realtime .remove_all_channels ()
221219
0 commit comments