(scope: Scope, key: str, previous: Any)
| 890 | |
| 891 | |
| 892 | def _restore_fastapi_scope_key(scope: Scope, key: str, previous: Any) -> None: |
| 893 | fastapi_scope = scope.get(_FASTAPI_SCOPE_KEY) |
| 894 | if not isinstance(fastapi_scope, dict): |
| 895 | return |
| 896 | if previous is _SCOPE_MISSING: |
| 897 | fastapi_scope.pop(key, None) |
| 898 | else: |
| 899 | fastapi_scope[key] = previous |
| 900 | |
| 901 | |
| 902 | class _APIRouteLike(Protocol): |
searching dependent graphs…