@
noahjsn 我试了是可以的呀
uv-conf-test [ main][?][ v0.1.0][ v3.14.3(uv-conf-test)]
❯ cat ~/.config/uv/uv.toml
exclude-newer = "7d"
uv-conf-test [ main][?][ v0.1.0][ v3.14.3(uv-conf-test)]
❯ uv add fastapi
Resolved 11 packages in 9ms
Installed 10 packages in 6ms
+ annotated-doc==0.0.4
+ annotated-types==0.7.0
+ anyio==4.13.0
+ fastapi==0.135.3
+ idna==3.11
+ pydantic==2.12.5
+ pydantic-core==2.41.5
+ starlette==1.0.0
+ typing-extensions==4.15.0
+ typing-inspection==0.4.2
---
fastapi 最新版本 0.136.0 ,安装的 0.135.3 是 4.2 发布的。Pypi:
https://pypi.org/project/fastapi/#history