Skip to content

Commit 0aedb6f

Browse files
authored
Merge pull request #628 from MichaelPaddon/main
Fix spelling errors.
2 parents 04a4592 + 8c9f4b0 commit 0aedb6f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/en/type-check.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ serde.compat.SerdeError: Method __main__.Foo.__init__() parameter s=10 violates
5858
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`.
5959
6060
```python
61-
@serde(type_check=Coerce)
61+
@serde(type_check=coerce)
6262
class Foo
6363
s: str
6464

docs/ja/type-check.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ serde.compat.SerdeError: Method __main__.Foo.__init__() parameter s=10 violates
6262
型強制 `coerce` は、(デ)シリアライズ中に値を宣言された型に自動的に変換します。
6363
6464
```python
65-
@serde(type_check=Coerce)
65+
@serde(type_check=coerce)
6666
class Foo:
6767
s: str
6868

serde/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def from_json(
100100
Deserialize from JSON into the object. [orjson](https://github.com/ijl/orjson) will be used
101101
if installed.
102102
103-
`c` is a class obejct and `s` is JSON bytes or str. If you supply other keyword arguments,
103+
`c` is a class object and `s` is JSON bytes or str. If you supply other keyword arguments,
104104
they will be passed in `loads` function.
105105
106106
If you want to use another json package, you can subclass `JsonDeserializer` and implement

serde/msgpack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def from_msgpack(
116116
"""
117117
Deserialize from MsgPack into the object.
118118
119-
`c` is a class obejct and `s` is MsgPack binary. If `ext_dict` option is specified,
119+
`c` is a class object and `s` is MsgPack binary. If `ext_dict` option is specified,
120120
`c` is ignored and type is inferred from `msgpack.ExtType` If you supply other keyword
121121
arguments, they will be passed in `msgpack.unpackb` function.
122122

serde/toml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def from_toml(c: Any, s: str, de: type[Deserializer[str]] = TomlDeserializer, **
8484
"""
8585
Deserialize from TOML into the object.
8686
87-
`c` is a class obejct and `s` is TOML string. If you supply keyword arguments other than `de`,
87+
`c` is a class object and `s` is TOML string. If you supply keyword arguments other than `de`,
8888
they will be passed in `toml.loads` function.
8989
9090
If you want to use the other toml package, you can subclass `TomlDeserializer` and implement

0 commit comments

Comments
 (0)