gal*_*h92 5 python mypy fastapi
考虑以下:
@app.post("/") def main(body: RequestBody) -> dict[str, object]: pass
我收到以下错误:
无类型装饰器使函数“main”无类型 [misc]mypy(error)
在网上找不到任何有关它的信息。我缺少什么?谢谢
小智 0
将Python \xe2\x80\xba Analysis: Type Checking Mode设置从更改strict为standard为我解决了这个问题。
Python \xe2\x80\xba Analysis: Type Checking Mode
strict
standard
归档时间:
2 年,11 月 前
查看次数:
1165 次
最近记录:
1 年,11 月 前