From b8193567eb87c814c5964ed78eba1b30c4527153 Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Tue, 4 Jun 2024 08:30:13 +0200 Subject: [PATCH] fixup! Define __getattribute__() instead of __getattr__() on slotted classes with cached properties --- docs/how-does-it-work.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how-does-it-work.md b/docs/how-does-it-work.md index 70ecd4551..7ba4212aa 100644 --- a/docs/how-does-it-work.md +++ b/docs/how-does-it-work.md @@ -111,7 +111,7 @@ Therefore, *attrs* converts `cached_property`-decorated methods when constructin Getting this working is achieved by: * Adding names to `__slots__` for the wrapped methods. -* Adding a `__getattr__` method to set values on the wrapped methods. +* Adding a `__getattribute__` method to set values on the wrapped methods. For most users, this should mean that it works transparently.