Skip to content

Commit d47aee0

Browse files
committed
fix fastapi import checker
1 parent 4c4b147 commit d47aee0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lite_bootstrap/bootstrappers/fastapi_bootstrapper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class FastAPIBootstrapper(BaseBootstrapper["fastapi.FastAPI"]):
174174
not_ready_message = "fastapi is not installed"
175175

176176
@contextlib.asynccontextmanager
177-
async def lifespan_manager(self, _: fastapi.FastAPI) -> typing.AsyncIterator[dict[str, typing.Any]]:
177+
async def lifespan_manager(self, _: "fastapi.FastAPI") -> typing.AsyncIterator[dict[str, typing.Any]]:
178178
try:
179179
yield {}
180180
finally:
@@ -195,5 +195,5 @@ def __init__(self, bootstrap_config: FastAPIConfig) -> None:
195195
def is_ready(self) -> bool:
196196
return import_checker.is_fastapi_installed
197197

198-
def _prepare_application(self) -> fastapi.FastAPI:
198+
def _prepare_application(self) -> "fastapi.FastAPI":
199199
return self.bootstrap_config.application

0 commit comments

Comments
 (0)