test_stringified_annotation_dependency_py314.py — fastapi Source File
Architecture documentation for test_stringified_annotation_dependency_py314.py, a python file in the fastapi codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR bae8b498_468b_a66a_cb3d_9e524bf05cc5["test_stringified_annotation_dependency_py314.py"] 8fd7072e_05b0_6622_0f14_e1e357032855["utils.py"] bae8b498_468b_a66a_cb3d_9e524bf05cc5 --> 8fd7072e_05b0_6622_0f14_e1e357032855 0dda2280_3359_8460_301c_e98c77e78185["typing"] bae8b498_468b_a66a_cb3d_9e524bf05cc5 --> 0dda2280_3359_8460_301c_e98c77e78185 534f6e44_61b8_3c38_8b89_6934a6df9802["__init__.py"] bae8b498_468b_a66a_cb3d_9e524bf05cc5 --> 534f6e44_61b8_3c38_8b89_6934a6df9802 a7c04dee_ee23_5891_b185_47ff6bed036d["testclient.py"] bae8b498_468b_a66a_cb3d_9e524bf05cc5 --> a7c04dee_ee23_5891_b185_47ff6bed036d style bae8b498_468b_a66a_cb3d_9e524bf05cc5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from typing import TYPE_CHECKING, Annotated
from fastapi import Depends, FastAPI
from fastapi.testclient import TestClient
from .utils import needs_py314
if TYPE_CHECKING: # pragma: no cover
class DummyUser: ...
@needs_py314
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
Functions
Classes
Dependencies
Source
Frequently Asked Questions
What does test_stringified_annotation_dependency_py314.py do?
test_stringified_annotation_dependency_py314.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Responses subdomain.
What functions are defined in test_stringified_annotation_dependency_py314.py?
test_stringified_annotation_dependency_py314.py defines 2 function(s): DummyUser, test_stringified_annotation.
What does test_stringified_annotation_dependency_py314.py depend on?
test_stringified_annotation_dependency_py314.py imports 4 module(s): __init__.py, testclient.py, typing, utils.py.
Where is test_stringified_annotation_dependency_py314.py in the architecture?
test_stringified_annotation_dependency_py314.py is located at tests/test_stringified_annotation_dependency_py314.py (domain: FastAPI, subdomain: Responses, directory: tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free