We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bd840a commit 50fdf03Copy full SHA for 50fdf03
1 file changed
tortoise/contrib/starlette/__init__.py
@@ -141,9 +141,7 @@ async def close_orm() -> None: # pylint: disable=W0612
141
if generate_schemas or not isinstance(original_lifespan, StarletteDefaultLifespan):
142
143
@asynccontextmanager
144
- async def orm_inited_lifespan(
145
- app_: Starlette,
146
- ) -> AsyncIterator[Mapping[str, Any] | None]:
+ async def orm_inited_lifespan(app_: Starlette) -> AsyncIterator[Mapping[str, Any] | None]:
147
await init_orm()
148
try:
149
async with original_lifespan(app_) as maybe_state:
0 commit comments