From db7d95f663c06a7982cc678ebb96d709caaac86c Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Sun, 9 Oct 2022 05:31:35 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- gotrue/_async/api.py | 3 +-- gotrue/_sync/api.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gotrue/_async/api.py b/gotrue/_async/api.py index 9f2098b6..e0b1a7b9 100644 --- a/gotrue/_async/api.py +++ b/gotrue/_async/api.py @@ -423,8 +423,7 @@ def _create_request_headers(self, *, jwt: str) -> Dict[str, str]: The headers required for a successful request statement with the supabase backend. """ - headers = {**self.headers} - headers["Authorization"] = f"Bearer {jwt}" + headers = {**self.headers, "Authorization": f"Bearer {jwt}"} return headers async def sign_out(self, *, jwt: str) -> None: diff --git a/gotrue/_sync/api.py b/gotrue/_sync/api.py index dfb6c76f..bec3f70b 100644 --- a/gotrue/_sync/api.py +++ b/gotrue/_sync/api.py @@ -423,8 +423,7 @@ def _create_request_headers(self, *, jwt: str) -> Dict[str, str]: The headers required for a successful request statement with the supabase backend. """ - headers = {**self.headers} - headers["Authorization"] = f"Bearer {jwt}" + headers = {**self.headers, "Authorization": f"Bearer {jwt}"} return headers def sign_out(self, *, jwt: str) -> None: