From 4580a74fc9019786d7fb2e722c890033dfe47517 Mon Sep 17 00:00:00 2001 From: Douglas Griffith Date: Tue, 29 Oct 2024 10:34:22 -0400 Subject: [PATCH] update frozen post-init example to use frozen (#1367) --- docs/init.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/init.md b/docs/init.md index d3b9b0fa..e4bb78e8 100644 --- a/docs/init.md +++ b/docs/init.md @@ -476,7 +476,7 @@ attrs.exceptions.FrozenInstanceError: can't set attribute 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__`: ```{doctest} ->>> @define +>>> @frozen ... class Frozen: ... x: int ... y: int = field(init=False)