Skip to content

Commit f9e10f1

Browse files
committed
lint and reformat
1 parent 9f978a3 commit f9e10f1

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

httpx/_auth.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,15 @@ class BearerTokenAuth(Auth):
148148
and uses HTTP Bearer authentication (RFC 6750).
149149
"""
150150

151-
def __init__(self, bearer_token: str | bytes, variant: typing.Literal["HEADER", "FORM-ENCODED", "QUERY"] = "HEADER") -> None:
151+
def __init__(
152+
self,
153+
bearer_token: str | bytes,
154+
variant: typing.Literal["HEADER", "FORM-ENCODED", "QUERY"] = "HEADER",
155+
) -> None:
152156
if variant != "HEADER":
153-
raise NotImplementedError(f"BearerTokenAuth variant '{variant}' is not yet implemented")
157+
raise NotImplementedError(
158+
f"BearerTokenAuth variant '{variant}' is not yet implemented"
159+
)
154160
self._auth_header = self._build_auth_header(bearer_token)
155161

156162
def auth_flow(self, request: Request) -> typing.Generator[Request, Response, None]:

0 commit comments

Comments
 (0)