Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ All objects from ``attrs.filters`` are also available from ``attr.filters`` (it'
This fact has several implications:

* private attributes should be specified without the leading underscore, just like in ``__init__``.
* attributes with ``init=False`` can't be set with ``evolve``.
* ``evolve`` doesn't copy existing values from attributes with ``init=False``.
With an *attrs*-generated ``__init__``, such attributes can't be passed as changes to ``evolve`` and are initialized as they would be on a newly constructed instance, which may involve defaults, factories, or ``__attrs_post_init__``.
* the usual ``__init__`` validators will validate the new values.

.. autofunction:: attrs.validate
Expand Down