- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_stringified_annotations (0.33 sec)
-
tests/test_stringified_annotations_simple.py
from fastapi.testclient import TestClient from .utils import needs_py310 class Dep: def __call__(self, request: Request): return "test" @needs_py310 def test_stringified_annotations(): app = FastAPI() client = TestClient(app) @app.get("/test/") def call(test: Annotated[str, Depends(Dep())]): return {"test": test} response = client.get("/test")Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 545 bytes - Viewed (0)