Commit 2d4b7c3
committed
fix: correct entity field syntax in README code example (#10)
Fields Id and String require parentheses when used as class attributes.
Without `Id()` and `String()`, instantiating the entity with keyword
arguments raises a TypeError at runtime.
Fixes #101 parent 9b38d97 commit 2d4b7c3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments