test_stringified_annotation() — fastapi Function Reference
Architecture documentation for the test_stringified_annotation() function in test_stringified_annotation_dependency_py314.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 728c6cde_bd9f_1801_5871_fd24fbcf22dd["test_stringified_annotation()"] bae8b498_468b_a66a_cb3d_9e524bf05cc5["test_stringified_annotation_dependency_py314.py"] 728c6cde_bd9f_1801_5871_fd24fbcf22dd -->|defined in| bae8b498_468b_a66a_cb3d_9e524bf05cc5 style 728c6cde_bd9f_1801_5871_fd24fbcf22dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_stringified_annotation_dependency_py314.py lines 14–30
def test_stringified_annotation():
# python3.14: Use forward reference without "from __future__ import annotations"
async def get_current_user() -> DummyUser | None:
return None
app = FastAPI()
client = TestClient(app)
@app.get("/")
async def get(
current_user: Annotated[DummyUser | None, Depends(get_current_user)],
) -> str:
return "hello world"
response = client.get("/")
assert response.status_code == 200
Domain
Subdomains
Source
Frequently Asked Questions
What does test_stringified_annotation() do?
test_stringified_annotation() is a function in the fastapi codebase, defined in tests/test_stringified_annotation_dependency_py314.py.
Where is test_stringified_annotation() defined?
test_stringified_annotation() is defined in tests/test_stringified_annotation_dependency_py314.py at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free