Browse Source

fix mypy

pull/9630/head
Lancetnik 2 years ago
parent
commit
3d56ad5080
  1. BIN
      .coverage.GL738RC2e4d06aa.62433.347962
  2. 8
      fastapi/routing.py

BIN
.coverage.GL738RC2e4d06aa.62433.347962

Binary file not shown.

8
fastapi/routing.py

@ -120,10 +120,10 @@ def _merge_lifespan_context(
async def merged_lifespan(app: AppType) -> AsyncIterator[Mapping[str, Any]]: async def merged_lifespan(app: AppType) -> AsyncIterator[Mapping[str, Any]]:
async with original_context(app) as maybe_self_context: async with original_context(app) as maybe_self_context:
async with nested_context(app) as maybe_nested_context: async with nested_context(app) as maybe_nested_context:
context = maybe_self_context or {} yield {
if maybe_nested_context: **(maybe_self_context or {}),
context.update(maybe_nested_context) **(maybe_nested_context or {})
yield context }
return merged_lifespan return merged_lifespan

Loading…
Cancel
Save