Skip to content

Commit

Permalink
Fix some typos in docs (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogdham committed Mar 30, 2022
1 parent 63d3c3e commit bd774c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conversions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!}
Expand Down
2 changes: 1 addition & 1 deletion docs/data_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit bd774c9

Please sign in to comment.