Fixed import in Security example

Seems the example does not import `Security` from fastapi instead points to `Depends`
This commit is contained in:
0shah0 2024-02-20 15:10:06 +05:30 committed by GitHub
parent a6bc32a61a
commit e9926e74e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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