MCPcopy
hub / github.com/fastapi/fastapi / _update_scope

Function _update_scope

fastapi/routing.py:866–872  ·  view source on GitHub ↗
(scope: Scope, child_scope: Scope)

Source from the content-addressed store, hash-verified

864
865
866def _update_scope(scope: Scope, child_scope: Scope) -> None:
867 fastapi_child_scope = child_scope.get(_FASTAPI_SCOPE_KEY)
868 for key, value in child_scope.items():
869 if key != _FASTAPI_SCOPE_KEY:
870 scope[key] = value
871 if isinstance(fastapi_child_scope, dict):
872 _get_fastapi_scope(scope).update(fastapi_child_scope)
873
874
875def _get_scope_effective_route_context(scope: Scope) -> Any | None:

Callers 2

handleMethod · 0.85
appMethod · 0.85

Calls 2

_get_fastapi_scopeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…