Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/fastapi/fastapi
/ get_item
Function
get_item
tests/test_ambiguous_params.py:17–18 ·
view source on GitHub ↗
(item_id: Annotated[int, Path(default=1)])
Source
from the content-addressed store, hash-verified
15
16
@app.get(
"/items/{item_id}/"
)
17
async
def
get_item(item_id: Annotated[int, Path(default=1)]):
18
pass
# pragma: nocover
19
20
with
pytest.raises(
21
AssertionError,
Callers
nothing calls this directly
Calls
1
Path
Class · 0.90
Tested by
no test coverage detected