Skip to content

Commit 60bc2ca

Browse files
committed
📝 Tweak format
1 parent 97fe1e6 commit 60bc2ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/docs/tutorial/body.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ The function parameters will be recognized as follows:
237237

238238
FastAPI will know that the value of `q` is not required because of the default value `= None`.
239239

240-
The `str | None` (Python 3.10+) or `Union` in `Union[str, None]` (Python 3.8+) is not used by FastAPI to determine that the value is not required, it will know it's not required because it has a default value of `= None`.
240+
The `str | None` (Python 3.10+) or `Union` in `Union[str, None]` (Python 3.8+) is not used by FastAPI to determine that the value is not required, it will know it's not required because it has a default value of `= None`.
241241

242242
But adding the type annotations will allow your editor to give you better support and detect errors.
243243

0 commit comments

Comments
 (0)