docs(fastapi-patterns): import Depends in the router example

The users router uses Depends() for OAuth2PasswordRequestForm but the
import line omits it, so the module raises NameError on import.
Regenerated pi/core with scripts/build-pi-core.js.

Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit d383fb57e9)
This commit is contained in:
Wen authored and haelyra committed 2026-10-20 18:01:40 -04:00
1 parent 45a021ea11
commit c5378bf456
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -229,7 +229,7 @@ ActiveUserDep = Annotated[User, Depends(get_current_active_user)]
```python
# app/routers/users.py
from typing import Annotated
from fastapi import APIRouter, HTTPException, Query, status
from fastapi import APIRouter, Depends, HTTPException, Query, status
from fastapi.security import OAuth2PasswordRequestForm
from app.dependencies import ActiveUserDep, DbDep