Skip to content

Commit 50fdf03

Browse files
committed
Less lines
1 parent 2bd840a commit 50fdf03

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tortoise/contrib/starlette/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ async def close_orm() -> None: # pylint: disable=W0612
141141
if generate_schemas or not isinstance(original_lifespan, StarletteDefaultLifespan):
142142

143143
@asynccontextmanager
144-
async def orm_inited_lifespan(
145-
app_: Starlette,
146-
) -> AsyncIterator[Mapping[str, Any] | None]:
144+
async def orm_inited_lifespan(app_: Starlette) -> AsyncIterator[Mapping[str, Any] | None]:
147145
await init_orm()
148146
try:
149147
async with original_lifespan(app_) as maybe_state:

0 commit comments

Comments
 (0)