Home / Function/ _uses_scopes() — fastapi Function Reference

_uses_scopes() — fastapi Function Reference

Architecture documentation for the _uses_scopes() function in models.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  3ffc2a2a_8c80_4df2_780c_893c19d3fa14["_uses_scopes()"]
  575d42b6_61a5_5351_210d_0e7a8dd0084f["Dependant"]
  3ffc2a2a_8c80_4df2_780c_893c19d3fa14 -->|defined in| 575d42b6_61a5_5351_210d_0e7a8dd0084f
  style 3ffc2a2a_8c80_4df2_780c_893c19d3fa14 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fastapi/dependencies/models.py lines 74–84

    def _uses_scopes(self) -> bool:
        if self.own_oauth_scopes:
            return True
        if self.security_scopes_param_name is not None:
            return True
        if self._is_security_scheme:
            return True
        for sub_dep in self.dependencies:
            if sub_dep._uses_scopes:
                return True
        return False

Subdomains

Frequently Asked Questions

What does _uses_scopes() do?
_uses_scopes() is a function in the fastapi codebase, defined in fastapi/dependencies/models.py.
Where is _uses_scopes() defined?
_uses_scopes() is defined in fastapi/dependencies/models.py at line 74.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free