Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ed2a90c

Browse filesBrowse files
committed
📝 Update includes in corner cases
1 parent e962393 commit ed2a90c
Copy full SHA for ed2a90c

File tree

Expand file treeCollapse file tree

3 files changed

+21
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+21
-3
lines changed

‎docs/tutorial/automatic-id-none-refresh.md

Copy file name to clipboardExpand all lines: docs/tutorial/automatic-id-none-refresh.md
+19-1Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,25 @@ And as we created the **engine** with `echo=True`, we can see the SQL statements
332332

333333
///
334334

335-
{* ./docs_src/tutorial/automatic_id_none_refresh/tutorial002_py310.py *}
335+
//// tab | Python 3.10+
336+
337+
```Python
338+
{!./docs_src/tutorial/automatic_id_none_refresh/tutorial002_py310.py!}
339+
```
340+
341+
{!./docs_src/tutorial/automatic_id_none_refresh/annotations/en/tutorial002.md!}
342+
343+
////
344+
345+
//// tab | Python 3.7+
346+
347+
```Python
348+
{!./docs_src/tutorial/automatic_id_none_refresh/tutorial002.py!}
349+
```
350+
351+
{!./docs_src/tutorial/automatic_id_none_refresh/annotations/en/tutorial002.md!}
352+
353+
////
336354

337355
And here's all the output generated by running this program, all together:
338356

‎docs/tutorial/fastapi/response-model.md

Copy file name to clipboardExpand all lines: docs/tutorial/fastapi/response-model.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ We can also use other type annotations, the same way we can use with Pydantic fi
4040

4141
First, we import `List` from `typing` and then we declare the `response_model` with `List[Hero]`:
4242

43-
{* ./docs_src/tutorial/fastapi/response_model/tutorial001_py310.py ln[40:44] *}
43+
{* ./docs_src/tutorial/fastapi/response_model/tutorial001_py310.py ln[40:44] hl[40] *}
4444

4545
## FastAPI and Response Model
4646

‎docs/tutorial/fastapi/simple-hero-api.md

Copy file name to clipboardExpand all lines: docs/tutorial/fastapi/simple-hero-api.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ We will start with the **simplest version**, with just heroes (no teams yet).
3232

3333
This is almost the same code we have seen up to now in previous examples:
3434

35-
{* ./docs_src/tutorial/fastapi/simple_hero_api/tutorial001_py310.py ln[2,5:20] hl[18:19] *}
35+
{* ./docs_src/tutorial/fastapi/simple_hero_api/tutorial001_py310.py ln[2,5:20] hl[19:20] *}
3636

3737
There's only one change here from the code we have used before, the `check_same_thread` in the `connect_args`.
3838

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.