Skip to content

Commit 4580a74

Browse files
authored
update frozen post-init example to use frozen (#1367)
1 parent 1921da6 commit 4580a74

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
@@ -476,7 +476,7 @@ attrs.exceptions.FrozenInstanceError: can't set attribute
476476
If you need to set attributes on a frozen class, you'll have to resort to the [same trick](how-frozen) as *attrs* and use {meth}`object.__setattr__`:
477477

478478
```{doctest}
479-
>>> @define
479+
>>> @frozen
480480
... class Frozen:
481481
... x: int
482482
... y: int = field(init=False)

0 commit comments

Comments
 (0)