attrs/docs
diabolo-dan 597c3a8adb
Add support for cached_properties to slotted attrs classes. (#1200)
* Add support for cached_properties to slotted attrs classes.

* Remove locking from implementation

* Add test for multiple cached properties and fix bug

* Add changelog file

* Document slotted cached properties

* Add cached_property hypothesis check.

* Only run cached_property imports on python 3.8+

* Use cached _obj_setattr instead of `object.__setattr__`

* Correctly resolve mro for __getattr__ in cached properties

* Use _get_annotations rather than branching on class dict entry

* Optimise __getattr__ code by front loading branching, and injecting locasl variables

* Remove unnecessary `__attrs_original_getattr__` from class dictionary.

---------

Co-authored-by: Hynek Schlawack <hs@ox.cx>
2023-12-08 18:24:25 +00:00
..
_static Let's stand out 2023-11-23 08:28:31 +01:00
Makefile
api-attr.rst Fix object index in API docs by splitting API docs in two (#1080) 2023-01-10 17:53:28 +01:00
api.rst Build docs on 3.12 2023-11-28 13:26:27 +01:00
changelog.md
comparison.md docs: explain how we compare (#1192) 2023-10-18 08:14:14 +02:00
conf.py Let's stand out 2023-11-23 08:28:31 +01:00
examples.md doc: update statement in examples 2023-10-09 15:13:17 +02:00
extending.md Switched from __dataclass_transform__() to typing.dataclass_transform() (#1158) 2023-07-06 18:41:45 +02:00
glossary.md Use MyST-native doctest blocks in all MD 2022-12-20 10:46:32 +01:00
hashing.md
how-does-it-work.md Add support for cached_properties to slotted attrs classes. (#1200) 2023-12-08 18:24:25 +00:00
index.md Add meta section 2023-08-15 09:51:08 +02:00
init.md Add more cross-references 2023-10-18 08:39:24 +02:00
license.md
names.md
overview.md
types.md Fix pyright for 1.1.311 (#1138) 2023-06-03 12:12:03 +02:00
why.md docs: typo 2023-11-23 08:29:37 +01:00