minor: cleanup
Minor tweaks to reduce warnings in IDE e.g. unused imports.
This commit is contained in:
parent
d89c926a38
commit
f54876eac6
7 changed files with 10 additions and 15 deletions
|
|
@ -34,7 +34,11 @@ app = FastAPI(
|
|||
}
|
||||
)
|
||||
|
||||
# Type inspection disabled for middleware injection.
|
||||
# Known bug in FastAPI type checking: https://github.com/astral-sh/ty/issues/1635
|
||||
# noinspection PyTypeChecker
|
||||
app.add_middleware(SessionMiddleware, secret_key=settings.SECRET_KEY.get_secret_value())
|
||||
# noinspection PyTypeChecker
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=settings.CORS_ORIGINS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue