Commit Graph

4 Commits

Author SHA1 Message Date
Hynek Schlawack c849440ac9
Add more cross-references 2023-10-18 08:39:24 +02:00
Victor Song c2824ac30f
Pass args from `__init__` to `__attrs_pre_init__` if requested (#1187)
* Pass args from `__init__` to `__attrs_pre_init__` if requested

Detect if `__attrs_pre_init__` has arguments besides `self`
using `inspect.signature`. If so, pass `__attrs_pre_init__`
the same arguments that `__init__` (or `__attrs_init__`)
expects.

* Add changelog entry for `__attrs_pre_init__` args changes

* Don't use monkeypatch in new code

* Clarify docs

* Missed one monkeypatching

---------

Co-authored-by: Hynek Schlawack <hs@ox.cx>
2023-09-29 08:47:51 +02:00
George Tantiras 5d9753a3b1
Slightly refined documentation while reading it (#1106)
* Fixed typos in why.md

* Rephrased introductory sentences

* Update init.md

* Update docs/init.md

* Update docs/init.md

* Update docs/init.md

---------

Co-authored-by: Hynek Schlawack <hs@ox.cx>
2023-03-18 12:03:36 +01:00
Hynek Schlawack a760574795
Convert init.rst to md 2022-12-20 08:22:51 +01:00