Commit Graph

8 Commits

Author SHA1 Message Date
Hynek Schlawack f590f44cfd
docs: style improvements 2024-03-16 16:22:58 +01:00
Hynek Schlawack deb0133f63
docs: compound adjective 2024-01-13 07:26:19 +01:00
Hynek Schlawack cee6192bd1
No periods in headings 2023-12-31 12:12:51 +01:00
Hynek Schlawack bfd70c9eeb
docs: make it a link 2023-12-31 11:36:01 +01:00
Hynek Schlawack bfbea3a901
docs: wordsmith 2023-12-31 11:34:25 +01:00
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
Hynek Schlawack 519423d94a
Use MyST-native doctest blocks in all MD 2022-12-20 10:46:32 +01:00
Hynek Schlawack a09a6e7010
Convert how-does-it-work.rst to md 2022-12-20 07:34:58 +01:00