Skip to content

Commit c8515a0

Browse files
fix typecheck
1 parent 1c4f7ec commit c8515a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/service-library/src/servicelib/fastapi/app_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
import threading
23
from datetime import timedelta
34
from typing import Final
45

@@ -22,7 +23,7 @@ def fastapi_app(self) -> FastAPI:
2223
assert isinstance(self._app, FastAPI) # nosec
2324
return self._app
2425

25-
async def startup(self, completed: asyncio.Event):
26+
async def startup(self, completed: threading.Event):
2627
self._lifespan_manager = LifespanManager(
2728
self.fastapi_app,
2829
startup_timeout=_STARTUP_TIMEOUT,

0 commit comments

Comments
 (0)