Skip to content

Commit

Permalink
Use next-generation API for attrs example in README (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic authored Jan 28, 2025
1 parent 2cf8f5d commit f1b3e38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ class SomePydanticModel(pydantic.BaseModel):
### [`attrs.define`](https://www.attrs.org/en/stable/overview.html)

```python
import attr
import attrs

@attr.define
@attrs.define
class SomeAttrsModel:
a: int = 0
b: str = "b"
c: list[int] = attr.field(default=attr.Factory(list))
c: list[int] = attrs.field(factory=list)
```

### [`msgspec.Struct`](https://jcristharif.com/msgspec/)
Expand Down

0 comments on commit f1b3e38

Please sign in to comment.