Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for alice (0.16 sec)

  1. tests/test_dependency_security_overrides.py

    app = FastAPI()
    
    
    def get_user(required_scopes: SecurityScopes):
        return "john", required_scopes.scopes
    
    
    def get_user_override(required_scopes: SecurityScopes):
        return "alice", required_scopes.scopes
    
    
    def get_data():
        return [1, 2, 3]
    
    
    def get_data_override():
        return [3, 4, 5]
    
    
    @app.get("/user")
    def read_user(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jun 14 15:54:46 GMT 2020
    - 1.4K bytes
    - Viewed (0)
Back to top