Skip to content

Commit

Permalink
Merge pull request #628 from MichaelPaddon/main
Browse files Browse the repository at this point in the history
Fix spelling errors.
  • Loading branch information
yukinarit authored Jan 4, 2025
2 parents 04a4592 + 8c9f4b0 commit 0aedb6f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 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
2 changes: 1 addition & 1 deletion serde/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def from_json(
Deserialize from JSON into the object. [orjson](https://github.com/ijl/orjson) will be used
if installed.
`c` is a class obejct and `s` is JSON bytes or str. If you supply other keyword arguments,
`c` is a class object and `s` is JSON bytes or str. If you supply other keyword arguments,
they will be passed in `loads` function.
If you want to use another json package, you can subclass `JsonDeserializer` and implement
Expand Down
2 changes: 1 addition & 1 deletion serde/msgpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def from_msgpack(
"""
Deserialize from MsgPack into the object.
`c` is a class obejct and `s` is MsgPack binary. If `ext_dict` option is specified,
`c` is a class object and `s` is MsgPack binary. If `ext_dict` option is specified,
`c` is ignored and type is inferred from `msgpack.ExtType` If you supply other keyword
arguments, they will be passed in `msgpack.unpackb` function.
Expand Down
2 changes: 1 addition & 1 deletion serde/toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def from_toml(c: Any, s: str, de: type[Deserializer[str]] = TomlDeserializer, **
"""
Deserialize from TOML into the object.
`c` is a class obejct and `s` is TOML string. If you supply keyword arguments other than `de`,
`c` is a class object and `s` is TOML string. If you supply keyword arguments other than `de`,
they will be passed in `toml.loads` function.
If you want to use the other toml package, you can subclass `TomlDeserializer` and implement
Expand Down

0 comments on commit 0aedb6f

Please sign in to comment.