We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df9643 commit 50129c4Copy full SHA for 50129c4
docs/init.md
@@ -389,7 +389,7 @@ Or as a decorator
389
```{doctest}
390
>>> @define
391
... class C:
392
-... factor = 5 # not an *attrs* field
+... factor: ClassVar[int] = 5 # ClassVars are ignored by attrs
393
... x: int = field(metadata={"offset": 200})
394
... @x.converter
395
... def _convert_x(self, attribute, value):
0 commit comments