Skip to content

Commit 46c201f

Browse files
authored
fix: refactor create_client functions to call constructor directly (#805)
1 parent 2972d76 commit 46c201f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

supabase/_async/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,6 @@ async def create_client(
296296
-------
297297
Client
298298
"""
299-
return await AsyncClient.create(
299+
return AsyncClient(
300300
supabase_url=supabase_url, supabase_key=supabase_key, options=options
301301
)

supabase/_sync/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,6 @@ def create_client(
296296
-------
297297
Client
298298
"""
299-
return SyncClient.create(
299+
return SyncClient(
300300
supabase_url=supabase_url, supabase_key=supabase_key, options=options
301301
)

0 commit comments

Comments
 (0)