Skip to content

Commit 858d658

Browse files
authored
Merge pull request #531 from yukinarit/remove-@dataclass-from-docs
Remove @DataClass from documentation
2 parents cfb4b60 + ebb9892 commit 858d658

File tree

5 files changed

+0
-8
lines changed

5 files changed

+0
-8
lines changed

docs/en/class-attributes.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ See [examples/kw_only.py](https://github.com/yukinarit/pyserde/blob/main/example
3232

3333
```python
3434
@serde(rename_all = 'camelcase')
35-
@dataclass
3635
class Foo:
3736
int_field: int
3837
str_field: str

docs/en/decorators.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
This code
88
```python
99
@serde
10-
@dataclass
1110
class Foo:
1211
...
1312
```
@@ -116,10 +115,8 @@ pyserde supports [PEP563 Postponed evaluation of annotation](https://peps.python
116115
```python
117116
from __future__ import annotations
118117
from serde import serde
119-
from dataclasses import dataclass
120118

121119
@serde
122-
@dataclass
123120
class Foo:
124121
i: int
125122
s: str

docs/en/introduction.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
```python
66
@serde
7-
@dataclass
87
class Foo:
98
i: int
109
s: str

docs/en/type-check.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Type coercing automatically converts a value into the declared type during (de)s
5959
6060
```python
6161
@serde(type_check=Coerce)
62-
@dataclass
6362
class Foo
6463
s: str
6564
@@ -75,7 +74,6 @@ This is the default behavior until pyserde v0.8.3 and v0.9.x. No type coercion o
7574
7675
```python
7776
@serde
78-
@dataclass
7977
class Foo
8078
s: str
8179

docs/en/union.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class Foo:
3636
>
3737
> ```python
3838
> @serde(tagging=ExternalTagging)
39-
> @dataclass
4039
> class Foo:
4140
> a: Union[list[int], set[int]]
4241
> ```

0 commit comments

Comments
 (0)