MCPcopy
hub / github.com/fastapi/fastapi / _frontend_scope_specificity

Function _frontend_scope_specificity

fastapi/routing.py:883–889  ·  view source on GitHub ↗
(scope: Scope)

Source from the content-addressed store, hash-verified

881
882
883def _frontend_scope_specificity(scope: Scope) -> int | None:
884 specificity = scope.get(_FASTAPI_SCOPE_KEY, {}).get(
885 _FASTAPI_FRONTEND_SPECIFICITY_KEY
886 )
887 if isinstance(specificity, int):
888 return specificity
889 return None
890
891
892def _restore_fastapi_scope_key(scope: Scope, key: str, previous: Any) -> None:

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…