Commit 884053d
committed
docs: fix Decimal field prose to reference Field() instead of condecimal()
The 'Decimals in SQLModel' section introduced its example with 'using
the condecimal() function', but the example (and current SQLModel) uses
Field(max_digits=..., decimal_places=...). condecimal() is a Pydantic v1
constrained-type helper that SQLModel does not re-export, and using it as
an annotation trips static type checkers.
Reword the sentence to match the paragraph above it and the code sample,
both of which already use Field().
Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>1 parent 07b69be commit 884053d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments