diff --git a/aiomisc/service/uvicorn.py b/aiomisc/service/uvicorn.py index 8982c4dd..928ad3b2 100644 --- a/aiomisc/service/uvicorn.py +++ b/aiomisc/service/uvicorn.py @@ -118,5 +118,5 @@ async def start(self) -> Any: self.server = Server(config) self.serve_task = asyncio.create_task(self.server.serve(sockets=[self.sock])) - async def stop(self, exception: Exception | None = None) -> None: + async def stop(self, exception: Optional[Exception] = None) -> None: await self.serve_task