From a44b4c67f029a452b80d4ad46b896c680bf982c6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 20:49:42 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/security/http.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/fastapi/security/http.py b/fastapi/security/http.py index d6d36324f8..d1cfa9079d 100644 --- a/fastapi/security/http.py +++ b/fastapi/security/http.py @@ -91,7 +91,9 @@ class HTTPBase(SecurityBase): headers=self.make_authenticate_headers(), ) - async def __call__(self, request: HTTPConnection) -> HTTPAuthorizationCredentials | None: + async def __call__( + self, request: HTTPConnection + ) -> HTTPAuthorizationCredentials | None: authorization = request.headers.get("Authorization") scheme, credentials = get_authorization_scheme_param(authorization) if not (authorization and scheme and credentials): @@ -300,7 +302,9 @@ class HTTPBearer(HTTPBase): self.scheme_name = scheme_name or self.__class__.__name__ self.auto_error = auto_error - async def __call__(self, request: HTTPConnection) -> HTTPAuthorizationCredentials | None: + async def __call__( + self, request: HTTPConnection + ) -> HTTPAuthorizationCredentials | None: authorization = request.headers.get("Authorization") scheme, credentials = get_authorization_scheme_param(authorization) if not (authorization and scheme and credentials): @@ -401,7 +405,9 @@ class HTTPDigest(HTTPBase): self.scheme_name = scheme_name or self.__class__.__name__ self.auto_error = auto_error - async def __call__(self, request: HTTPConnection) -> HTTPAuthorizationCredentials | None: + async def __call__( + self, request: HTTPConnection + ) -> HTTPAuthorizationCredentials | None: authorization = request.headers.get("Authorization") scheme, credentials = get_authorization_scheme_param(authorization) if not (authorization and scheme and credentials):