Skip to content

Commit 73572f7

Browse files
committed
Fix type annotation
Signed-off-by: Anuraag Agrawal <[email protected]>
1 parent c6a452f commit 73572f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/interceptors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ the authorization header.
239239
_auth_token = ContextVar["auth_token"]("current_auth_token")
240240

241241
class ClientAuthInterceptor:
242-
async def on_start(self, ctx: RequestContext) -> Token["auth_token"]:
242+
async def on_start(self, ctx: RequestContext):
243243
auth_token = _auth_token.get(None)
244244
if auth_token:
245245
ctx.request_headers()["authorization"] = f"Bearer {auth_token}"
@@ -253,7 +253,7 @@ the authorization header.
253253
_auth_token = ContextVar["auth_token"]("current_auth_token")
254254

255255
class ClientAuthInterceptor:
256-
def on_start(self, ctx: RequestContext) -> Token["auth_token"]:
256+
def on_start(self, ctx: RequestContext):
257257
auth_token = _auth_token.get(None)
258258
if auth_token:
259259
ctx.request_headers()["authorization"] = f"Bearer {auth_token}"

0 commit comments

Comments
 (0)