Skip to content

Commit

Permalink
Merge pull request #531 from yukinarit/remove-@dataclass-from-docs
Browse files Browse the repository at this point in the history
Remove @DataClass from documentation
  • Loading branch information
yukinarit authored May 29, 2024
2 parents cfb4b60 + ebb9892 commit 858d658
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion docs/en/class-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ See [examples/kw_only.py](https://github.com/yukinarit/pyserde/blob/main/example

```python
@serde(rename_all = 'camelcase')
@dataclass
class Foo:
int_field: int
str_field: str
Expand Down
3 changes: 0 additions & 3 deletions docs/en/decorators.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
This code
```python
@serde
@dataclass
class Foo:
...
```
Expand Down Expand Up @@ -116,10 +115,8 @@ pyserde supports [PEP563 Postponed evaluation of annotation](https://peps.python
```python
from __future__ import annotations
from serde import serde
from dataclasses import dataclass

@serde
@dataclass
class Foo:
i: int
s: str
Expand Down
1 change: 0 additions & 1 deletion docs/en/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

```python
@serde
@dataclass
class Foo:
i: int
s: str
Expand Down
2 changes: 0 additions & 2 deletions docs/en/type-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ Type coercing automatically converts a value into the declared type during (de)s
```python
@serde(type_check=Coerce)
@dataclass
class Foo
s: str
Expand All @@ -75,7 +74,6 @@ This is the default behavior until pyserde v0.8.3 and v0.9.x. No type coercion o
```python
@serde
@dataclass
class Foo
s: str
Expand Down
1 change: 0 additions & 1 deletion docs/en/union.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Foo:
>
> ```python
> @serde(tagging=ExternalTagging)
> @dataclass
> class Foo:
> a: Union[list[int], set[int]]
> ```
Expand Down

0 comments on commit 858d658

Please sign in to comment.