From 49049e5be14695fced37476ce3b4eb2a7cf217a9 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Thu, 16 May 2024 00:45:30 -0400 Subject: [PATCH] gh-108267: Fix object.__setattr__ regression in dataclasses docs --- Doc/library/dataclasses.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index 7a8b83e1384e5f..42265ca44fac50 100644 --- a/Doc/library/dataclasses.rst +++ b/Doc/library/dataclasses.rst @@ -615,7 +615,8 @@ methods will raise a :exc:`FrozenInstanceError` when invoked. There is a tiny performance penalty when using ``frozen=True``: :meth:`~object.__init__` cannot use simple assignment to initialize fields, and -must use :meth:`!__setattr__`. +must use :meth:`!object.__setattr__`. +.. Make sure to not remove "object" from "object.__setattr__" in the above markup .. _dataclasses-inheritance: