Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for dep0 (0.02 sec)

  1. tests/benchmarks/test_general_performance.py

    
    @app.get("/sync/dict-no-response-model")
    def sync_dict_no_response_model():
        return {"name": "foo", "value": 123}
    
    
    @app.get("/sync/dict-with-response-model", response_model=ItemOut)
    def sync_dict_with_response_model(
        dep: Annotated[int, Depends(dep_b)],
    ):
        return {"name": "foo", "value": 123, "dep": dep}
    
    
    @app.get("/sync/model-no-response-model")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 20:40:26 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial008.py

    import pytest
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="module",
        params=[
            "tutorial008_py39",
            # Fails with `NameError: name 'DepA' is not defined`
            pytest.param("tutorial008_an_py39", marks=pytest.mark.xfail),
        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod_name = f"docs_src.dependencies.{request.param}"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  3. docs/en/docs/release-notes.md

            handler -->> client: HTTP error response
            dep -->> dep: Raise other exception
        end
        dep ->> operation: Run dependency, e.g. DB session
        opt raise
            operation -->> dep: Raise HTTPException
            dep -->> handler: Auto forward exception
            handler -->> client: HTTP error response
            operation -->> dep: Raise other exception
            dep -->> handler: Auto forward exception
        end
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top