Skip to content

Commit

Permalink
docs: add highlight to the inheritance doc
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-right committed Nov 5, 2022
1 parent 0596710 commit 9651228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial/inheritance.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Depending on the business logic, parent `Document` can be like an "abstract" cla

To set the root model you have to set `is_root = True` in the inner Settings class. All the inherited documents (on any level) will be stored in the same collection.

```python
```py hl_lines="20 20"
from typing import Optional, List
from pydantic import BaseModel
from pymongo import MongoClient
Expand Down

0 comments on commit 9651228

Please sign in to comment.