📝 Highlight all new lines in docs example upgrade (#795)

This commit is contained in:
Christoph Deil 2020-01-08 22:34:14 +01:00 committed by Sebastián Ramírez
parent fd5ba77b83
commit cad6a6e0c1
2 changed files with 2 additions and 4 deletions

View File

@ -206,8 +206,7 @@ Now modify the file `main.py` to receive a body from a `PUT` request.
Declare the body using standard Python types, thanks to Pydantic.
```Python hl_lines="2 7 8 9 10 24"
```Python hl_lines="2 7 8 9 10 23 24 25"
from fastapi import FastAPI
from pydantic import BaseModel

View File

@ -206,8 +206,7 @@ Now modify the file `main.py` to receive a body from a `PUT` request.
Declare the body using standard Python types, thanks to Pydantic.
```Python hl_lines="2 7 8 9 10 24"
```Python hl_lines="2 7 8 9 10 23 24 25"
from fastapi import FastAPI
from pydantic import BaseModel