Skip to content

Commit ff24352

Browse files
authored
Merge pull request lightspeed-core#2432 from tisnik/minor-fixes
Minor fixes
2 parents 296495d + 684253c commit ff24352

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/app/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
from fastapi import FastAPI, HTTPException
1010
from fastapi.middleware.cors import CORSMiddleware
1111
from fastapi.responses import JSONResponse
12-
from ogx_client import APIConnectionError, AsyncOgxClient
1312
from fastapi.routing import iter_route_contexts
14-
13+
from ogx_client import APIConnectionError, AsyncOgxClient
1514
from starlette.types import ASGIApp, Message, Receive, Scope, Send
1615

1716
import version
@@ -293,9 +292,10 @@ async def send_wrapper(message: Message) -> None:
293292
routers.include_routers(app)
294293

295294
app_routes_paths = [
296-
rc.original_route.path
295+
rc.original_route.path # pyright: ignore[reportAttributeAccessIssue]
297296
for rc in iter_route_contexts(app.routes)
298-
if hasattr(rc.original_route, "path") and rc.original_route.path
297+
if hasattr(rc.original_route, "path")
298+
and rc.original_route.path # pyright: ignore[reportAttributeAccessIssue]
299299
]
300300

301301
# Register pure ASGI middlewares. Middleware execution order is the reverse of

0 commit comments

Comments
 (0)