Skip to content

Commit 6f688f5

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent 0103d21 commit 6f688f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tutorial/relationship-attributes/type-annotation-strings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ In the first Relationship attribute, we declare it with `List["Hero"]`, putting
1818

1919
What's that about? Can't we just write it normally as `List[Hero]`?
2020

21-
By that point, in that line in the code, the Python interpreter **doesn't know of any class `Hero`**, and if we put it just there, it would try to find it unsuccessfully, and then fail. 😭
21+
By that point, in that line in the code, the Python interpreter **doesn't know of any class `Hero`**, and if we put it just there, it would try to find it unsuccessfully, and then fail. 😭
2222

23-
Unlike some other Python features, SQLModel does not require the import `from __future__ import annotations` to handle forward referenced type annotations. In fact, when working with SQLModel, this import will disrupt the mapping of forward referenced types.
23+
Unlike some other Python features, SQLModel does not require the import `from __future__ import annotations` to handle forward referenced type annotations. In fact, when working with SQLModel, this import will disrupt the mapping of forward referenced types.
2424

2525
But by putting it in quotes, in a string, the interpreter sees it as just a string with the text `"Hero"` inside.
2626

0 commit comments

Comments
 (0)