From eca4cddf5976ab631384817becd3ec63941d7c34 Mon Sep 17 00:00:00 2001 From: sergey Date: Tue, 8 Oct 2024 19:43:33 +0300 Subject: [PATCH] add if type-checking --- routers/swagger.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routers/swagger.py b/routers/swagger.py index c58e147..924dee3 100644 --- a/routers/swagger.py +++ b/routers/swagger.py @@ -7,6 +7,11 @@ from config import conf from auth import verify_user_pwd +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from fastapi.security import HTTPBasicCredentials + router = APIRouter()