Use name: Annotated[type, Query(**options)]
replace name: type = Query(**options)
#53
Closed
2 tasks done
Checklist
Is your feature related to a problem? Please describe.
使用默认值为类型增加描述是妥协的做法。
Describe the solution you would like.
Describe alternatives you considered
使用这种方式,编辑器支持不会很好。因为不能传关键词,所以 options 要么是一个充满 None 的序列,要么是一个字典。写起来都不会太舒服。
The text was updated successfully, but these errors were encountered: