Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fastapi/fastapi
/ float_convertor
Function
float_convertor
tests/test_starlette_urlconvertors.py:13–14 ·
view source on GitHub ↗
(param: float = Path())
Source
from the content-addressed store, hash-verified
11
12
@app.get(
"/float/{param:float}"
)
13
def
float_convertor(param: float = Path()):
14
return
{
"float"
: param}
15
16
17
@app.get(
"/path/{param:path}"
)
Callers
nothing calls this directly
Calls
1
Path
Class · 0.90
Tested by
no test coverage detected