mirror of
https://github.com/fastapi/fastapi.git
synced 2026-07-16 18:03:08 -04:00
🔧 Add pre-commit with first config and first formatting pass (#4888)
* 🔧 Add first pre-commit config * 🎨 Format YAML files with pre-commit * 🎨 Format Markdown with pre-commit * 🎨 Format SVGs, drawio, JS, HTML with pre-commit * ➕ Add pre-commit to dev dependencies * ⬇️ Extend pre-commit range to support Python 3.6
This commit is contained in:
committed by
GitHub
parent
9cbd42b13e
commit
3d0f130ff3
@@ -22,7 +22,7 @@
|
||||
|
||||
!!! note
|
||||
路径参数总是必需的,因为它必须是路径的一部分。
|
||||
|
||||
|
||||
所以,你应该在声明时使用 `...` 将其标记为必需参数。
|
||||
|
||||
然而,即使你使用 `None` 声明路径参数或设置一个其他默认值也不会有任何影响,它依然会是必需参数。
|
||||
|
||||
Reference in New Issue
Block a user