Skip to content

Commit

Permalink
fixup! Define __getattribute__() instead of __getattr__() on slotted …
Browse files Browse the repository at this point in the history
…classes with cached properties
  • Loading branch information
dlax committed Jun 4, 2024
1 parent 1704015 commit b819356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/how-does-it-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit b819356

Please sign in to comment.