Skip to content

Commit 51d7d80

Browse files
committed
✏ Fix line numbers in Python code snippets
1 parent 1e81c88 commit 51d7d80

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/advanced/self-referential.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ To allow more fine-grained control over it, the `Relationship` constructor allow
1616

1717
Since SQLAlchemy relationships provide the [`remote_side`](https://docs.sqlalchemy.org/en/14/orm/relationship_api.html#sqlalchemy.orm.relationship.params.remote_side){.external-link target=_blank} parameter for just such an occasion, we can leverage that directly to construct the self-referential pattern with minimal code.
1818

19-
```Python hl_lines="15-17"
19+
```Python hl_lines="12"
2020
# Code above omitted 👆
2121

22-
{!./docs_src/advanced/self_referential/tutorial001.py[ln:5-21]!}
22+
{!./docs_src/advanced/self_referential/tutorial001.py[ln:6-17]!}
2323

2424
# Code below omitted 👇
2525
```
@@ -57,7 +57,7 @@ Now let us see how we can create villains with a boss:
5757
```Python hl_lines="6-7"
5858
# Code above omitted 👆
5959

60-
{!./docs_src/advanced/self_referential/tutorial001.py[ln:34-51]!}
60+
{!./docs_src/advanced/self_referential/tutorial001.py[ln:30-47]!}
6161

6262
# Code below omitted 👇
6363
```
@@ -78,11 +78,11 @@ If we only learn that a villain actually had a secret boss after we have already
7878
```Python hl_lines="8"
7979
# Code above omitted 👆
8080

81-
{!./docs_src/advanced/self_referential/tutorial001.py[ln:34-35]!}
81+
{!./docs_src/advanced/self_referential/tutorial001.py[ln:30-31]!}
8282

8383
# Previous code here omitted 👈
8484

85-
{!./docs_src/advanced/self_referential/tutorial001.py[ln:53-57]!}
85+
{!./docs_src/advanced/self_referential/tutorial001.py[ln:49-53]!}
8686

8787
# Code below omitted 👇
8888
```
@@ -98,14 +98,14 @@ If we only learn that a villain actually had a secret boss after we have already
9898

9999
And if we want to add minions to a boss after the fact, this is as easy as adding items to a Python list (because that's all it is 🤓):
100100

101-
```Python hl_lines="11-15"
101+
```Python hl_lines="11"
102102
# Code above omitted 👆
103103

104-
{!./docs_src/advanced/self_referential/tutorial001.py[ln:34-35]!}
104+
{!./docs_src/advanced/self_referential/tutorial001.py[ln:30-31]!}
105105

106106
# Previous code here omitted 👈
107107

108-
{!./docs_src/advanced/self_referential/tutorial001.py[ln:59-74]!}
108+
{!./docs_src/advanced/self_referential/tutorial001.py[ln:55-66]!}
109109

110110
# Code below omitted 👇
111111
```

0 commit comments

Comments
 (0)