Skip to content

Commit

Permalink
Fix README example
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Sep 30, 2020
1 parent 3c9c72f commit 5c24a31
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ No known alternative achieves that.

```python
from dataclasses import dataclass, field
from typing import List, Set
from typing import Set
from uuid import UUID, uuid4

from pytest import raises

from apischema import ValidationError, deserialization_schema, deserialize, serialize
from apischema import ValidationError, deserialize, serialize
from apischema.json_schema import deserialization_schema


# Define a schema with standard dataclasses
Expand Down Expand Up @@ -73,7 +74,5 @@ assert deserialization_schema(Resource) == {
```
*Apischema* works out of the box with your data model.

(This example and further ones are using pytest stuff because they are in fact run as tests in the library CI; that's very convenient)

[*Let's start the Apischema tour.*](https://wyfo.github.io/apischema/)

0 comments on commit 5c24a31

Please sign in to comment.