lint fixes

This commit is contained in:
Илья Глазунов
2025-12-04 01:27:43 +03:00
parent 3454801be7
commit edaccb59bb
3 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -152,9 +152,10 @@ class PyServeServer:
def _create_app(self) -> None:
from contextlib import asynccontextmanager
from typing import AsyncIterator
@asynccontextmanager
async def lifespan(app: Starlette):
async def lifespan(app: Starlette) -> AsyncIterator[None]:
await self._load_async_extensions()
logger.info("Async extensions loaded")
yield