Skip to content

Commit

Permalink
Fix coerce examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPaddon committed Jan 2, 2025
1 parent 83c5053 commit 8c9f4b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/type-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ serde.compat.SerdeError: Method __main__.Foo.__init__() parameter s=10 violates
Type coercing automatically converts a value into the declared type during (de)serialization. If the value is incompatible e.g. value is "foo" and type is int, pyserde raises an `SerdeError`.
```python
@serde(type_check=Coerce)
@serde(type_check=coerce)
class Foo
s: str
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/type-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ serde.compat.SerdeError: Method __main__.Foo.__init__() parameter s=10 violates
型強制 `coerce` は、(デ)シリアライズ中に値を宣言された型に自動的に変換します。
```python
@serde(type_check=Coerce)
@serde(type_check=coerce)
class Foo:
s: str
Expand Down

0 comments on commit 8c9f4b0

Please sign in to comment.