diff --git a/examples/basic_with_custom_state.py b/examples/basic_with_custom_state.py index 938faa4..20df9cd 100644 --- a/examples/basic_with_custom_state.py +++ b/examples/basic_with_custom_state.py @@ -72,9 +72,7 @@ async def client_session_error_handler(_, e: ClientSessionNotInitialized): return JSONResponse({"error": "Internal Error"}, status_code=500) -@app.get( - "/user", dependencies=[Depends(discord.requires_authorization)], response_model=User -) +@app.get("/user", dependencies=[Depends(discord.requires_authorization)], response_model=User) async def get_user(user: User = Depends(discord.user)): return user