File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
microbootstrap/bootstrappers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,18 @@ class FastApiBootstrapper(
3030 application_type = fastapi .FastAPI
3131
3232 @contextlib .asynccontextmanager
33- async def _lifespan_manager (self , _ : fastapi .FastAPI ) -> typing .AsyncIterator [dict [ str , typing . Any ] ]:
33+ async def _lifespan_manager (self , _ : fastapi .FastAPI ) -> typing .AsyncIterator [None ]:
3434 try :
3535 self .console_writer .print_bootstrap_table ()
36- yield {}
36+ yield
3737 finally :
3838 self .teardown ()
3939
4040 @contextlib .asynccontextmanager
41- async def _wrapped_lifespan_manager (self , app : fastapi .FastAPI ) -> typing .AsyncIterator [dict [ str , typing . Any ] ]:
41+ async def _wrapped_lifespan_manager (self , app : fastapi .FastAPI ) -> typing .AsyncIterator [None ]:
4242 assert self .application_config .lifespan # noqa: S101
4343 async with self ._lifespan_manager (app ), self .application_config .lifespan (app ):
44- yield {}
44+ yield None
4545
4646 def bootstrap_before (self ) -> dict [str , typing .Any ]:
4747 return {
You can’t perform that action at this time.
0 commit comments