mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-05 07:35:51 +00:00
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>
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -10,7 +10,7 @@
|
||||
"id": "hand-seeded",
|
||||
"source": "manual-curation-pending-regeneration"
|
||||
},
|
||||
"registryDigest": "498caee2738006d64530e9be34883111cf67742d8c4389f39d61299e1a1c4400",
|
||||
"registryDigest": "c179c4851e43a5e76b0837c7abf033eb813a8c2b7c0647aa0ccf27b4a34e7f26",
|
||||
"schemaVersion": 1,
|
||||
"triggers": {
|
||||
"skill:agent-runtime-gateway-smoke-test": [
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user