diff --git a/docs/conversions.md b/docs/conversions.md index 06004625..8dcd437f 100644 --- a/docs/conversions.md +++ b/docs/conversions.md @@ -23,7 +23,7 @@ Conversion is registered using `apischema.deserializer`/`apischema.serializer` f When used as function decorator, the `Source`/`Target` types are directly extracted from the conversion function signature. -`serializer` can be called on methods/properties, in which case `Source` type is inferred to be th owning type. +`serializer` can be called on methods/properties, in which case `Source` type is inferred to be the owning type. ```python {!conversions.py!} diff --git a/docs/data_model.md b/docs/data_model.md index 888bded8..4d828f2f 100644 --- a/docs/data_model.md +++ b/docs/data_model.md @@ -22,7 +22,7 @@ With some teasing of features presented later: ``` !!! note - Field's metadata are just an ordinary `dict`; *apischema* provides some functions to enrich these metadata with its own keys (`alias("foo_bar)` is roughly equivalent to `{"_apischema_alias": "foo_bar"}) and use them when the time comes, but metadata are not reserved to *apischema* and other keys can be added. + Field's metadata are just an ordinary `dict`; *apischema* provides some functions to enrich these metadata with its own keys (`alias("foo_bar")` is roughly equivalent to `{"_apischema_alias": "foo_bar"}) and use them when the time comes, but metadata are not reserved to *apischema* and other keys can be added. Because [PEP 584](https://www.python.org/dev/peps/pep-0584/) is painfully missing before Python 3.9, *apischema* metadata use their own subclass of `dict` just to add `|` operator for convenience in all Python versions.