From d26ff1880cc55fe467beae0a3b59f629d79a212e Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Sun, 30 Oct 2022 15:27:40 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- gotrue/_async/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gotrue/_async/api.py b/gotrue/_async/api.py index 896b750f..bb77cb37 100644 --- a/gotrue/_async/api.py +++ b/gotrue/_async/api.py @@ -422,8 +422,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: