mirror of https://github.com/tiangolo/fastapi.git
Fixed import in Security example
Seems the example does not import `Security` from fastapi instead points to `Depends`
This commit is contained in:
parent
a6bc32a61a
commit
e9926e74e8
|
|
@ -2343,7 +2343,7 @@ def Security( # noqa: N802
|
|||
```python
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import Depends, FastAPI
|
||||
from fastapi import Security, FastAPI
|
||||
|
||||
from .db import User
|
||||
from .security import get_current_active_user
|
||||
|
|
|
|||
Loading…
Reference in New Issue