Browse Source
✏️ Fix import typo in reference example for `Security` (#11168)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
pull/10947/head
0shah0
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
fastapi/param_functions.py
|
@ -2343,7 +2343,7 @@ def Security( # noqa: N802 |
|
|
```python |
|
|
```python |
|
|
from typing import Annotated |
|
|
from typing import Annotated |
|
|
|
|
|
|
|
|
from fastapi import Depends, FastAPI |
|
|
from fastapi import Security, FastAPI |
|
|
|
|
|
|
|
|
from .db import User |
|
|
from .db import User |
|
|
from .security import get_current_active_user |
|
|
from .security import get_current_active_user |
|
|