add if type-checking
This commit is contained in:
parent
9020f8880b
commit
eca4cddf59
|
@ -7,6 +7,11 @@ from config import conf
|
||||||
|
|
||||||
from auth import verify_user_pwd
|
from auth import verify_user_pwd
|
||||||
|
|
||||||
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from fastapi.security import HTTPBasicCredentials
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue