diff --git a/docs/en/type-check.md b/docs/en/type-check.md index a4d9eade..4e1add89 100644 --- a/docs/en/type-check.md +++ b/docs/en/type-check.md @@ -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 diff --git a/docs/ja/type-check.md b/docs/ja/type-check.md index a3b226bd..1b6bedc8 100644 --- a/docs/ja/type-check.md +++ b/docs/ja/type-check.md @@ -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