Skip to content

Commit 50129c4

Browse files
authored
Update docs/init.md
1 parent 4df9643 commit 50129c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/init.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ Or as a decorator
389389
```{doctest}
390390
>>> @define
391391
... class C:
392-
... factor = 5 # not an *attrs* field
392+
... factor: ClassVar[int] = 5 # ClassVars are ignored by attrs
393393
... x: int = field(metadata={"offset": 200})
394394
... @x.converter
395395
... def _convert_x(self, attribute, value):

0 commit comments

Comments
 (0)