From 83c5053be277781e28c305bbb9e9b27421a6aaa7 Mon Sep 17 00:00:00 2001 From: Michael Paddon Date: Thu, 2 Jan 2025 17:23:14 +0900 Subject: [PATCH] Fix spelling errors. --- serde/json.py | 2 +- serde/msgpack.py | 2 +- serde/toml.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/serde/json.py b/serde/json.py index 3d73be6b..a664e3ba 100644 --- a/serde/json.py +++ b/serde/json.py @@ -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 diff --git a/serde/msgpack.py b/serde/msgpack.py index 6d8bcb52..de85ade9 100644 --- a/serde/msgpack.py +++ b/serde/msgpack.py @@ -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. diff --git a/serde/toml.py b/serde/toml.py index c46508f7..cee4ac8e 100644 --- a/serde/toml.py +++ b/serde/toml.py @@ -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